You are not logged in.

#1 2007-03-05 13:18:17

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Backup-How to

There is no page for back in archlinux wiki. It would be great if users can put how they backup their arch here and put that in wiki. As for me, I installed sbackup, but do not know how to run it on xfce4.

Offline

#2 2007-03-05 13:36:22

SiD
Member
From: Germany
Registered: 2006-09-21
Posts: 729

Re: Backup-How to

I use partimage.
I have two partitions, one for the whole system (no extra partitoin for /boot /home ect.) and one for data (mp3, avi, backups, ect.).
To backup Arch I use a Live CD which contains partimage e.g. SystemRescueCD or KNOPPIX
http://www.sysresccd.org/Main_Page
http://www.knoppix.org/

Backup steps:
1. boot the Live CD
2. mount the data-partition
3. start partimage and write a backup of the system-partition to the mounted data-partition
4. unmount the data-partition
5. reboot arch (and maybe burning the image on a DVD)

Restore steps:
1. boot the Live CD
2. mount the data-partition
3. start partimage and restore the system-partition from backup-file on data-partition
4. unmount the data-partition
5. reboot arch

note:
the partition to be backed up / restored must not be mounted!

Last edited by SiD (2007-03-05 13:36:55)

Offline

#3 2007-03-05 15:57:38

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: Backup-How to

i use sbackup. It doesn't matter which DE you use.
1. run as root /sbin/simple-backup-config and configure your backups
2. take a look at /etc/sbackup.conf to ensure it's sane
3. make sure /sbin/sbackupd is in your crontab

Have fun smile

Offline

#4 2007-03-05 17:23:16

timm
Member
From: Wisconsin
Registered: 2004-02-25
Posts: 417

Re: Backup-How to

I use bacula (http://www.bacula.org/) which can be a pain to set up, but once it's up, it's automatic and you hardly ever have to look at it again.

Offline

#5 2007-03-07 11:13:20

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Backup-How to

I tried sbackup, but it gives me error which is as follows:

[root@bluehead shantanu]# /sbin/simple-backup-config 

(simple-backup-config:3852): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

(simple-backup-config:3852): libglade-WARNING **: could not find glade file '/usr/share/sbackup/simple-backup-config.glade'
Traceback (most recent call last):
  File "/sbin/simple-backup-config", line 861, in ?
    i = SBConf()
  File "/sbin/simple-backup-config", line 86, in __init__
    self.widgets = gtk.glade.XML(self.conf.get("places", "prefix") + "/share/sbackup/simple-backup-config.glade")
RuntimeError: could not create GladeXML object

Also, what do u mean by "make sure /sbin/sbackupd is in your crontab." In which config file shall i add "sbackupd" (i'm kinda noob).

Offline

#6 2007-03-07 14:17:55

lloeki
Member
From: France
Registered: 2007-02-20
Posts: 456
Website

Re: Backup-How to

ravisghosh,

your locale setting may be wrong:
1. set up locales you want in /etc/locale.gen
2. generate locales with 'locale-gen'
3. set up LANG locale in /etc/profile.d/locale.sh
4. logout and relogin
5. run 'locale' in a console to check

Last edited by lloeki (2007-03-07 14:19:40)


To know recursion, you must first know recursion.

Offline

#7 2007-03-07 15:39:26

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: Backup-How to

ravisghosh wrote:

I tried sbackup, but it gives me error which is as follows:

[root@bluehead shantanu]# /sbin/simple-backup-config 

(simple-backup-config:3852): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

(simple-backup-config:3852): libglade-WARNING **: could not find glade file '/usr/share/sbackup/simple-backup-config.glade'
Traceback (most recent call last):
  File "/sbin/simple-backup-config", line 861, in ?
    i = SBConf()
  File "/sbin/simple-backup-config", line 86, in __init__
    self.widgets = gtk.glade.XML(self.conf.get("places", "prefix") + "/share/sbackup/simple-backup-config.glade")
RuntimeError: could not create GladeXML object

Also, what do u mean by "make sure /sbin/sbackupd is in your crontab." In which config file shall i add "sbackupd" (i'm kinda noob).

In order to check that sbackup is in crontab do as root:

crontab -l

You might want to take a look here http://en.wikipedia.org/wiki/Crontab

Offline

#8 2007-03-07 15:40:10

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: Backup-How to

BTW, it looks like your sbackup installation is not good, how did u install it?

Offline

#9 2007-03-08 02:47:18

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Backup-How to

@ IIoeki,
Here is what i did following you instructions:
1. Uncommented "en_IN UTF-8" in /etc/locale.gen (i am in india)
2. Did 'locale-gen' in console.
3. opened /etc/profile.d/locale.sh but made no changes as i want to use US english. The contents of it are as follows:

export LANG=en_US.utf8
if [ "$CONSOLE" = "" -a "$TERM" = "linux" -a isatty ]; then echo -ne "\e%G"; fi

4. logged out and logged in back.
5. ran 'locale' in console and it gave me this:

locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
LANG=en_US.utf8
LC_CTYPE="en_US.utf8"
LC_NUMERIC="en_US.utf8"
LC_TIME="en_US.utf8"
LC_COLLATE=C
LC_MONETARY="en_US.utf8"
LC_MESSAGES="en_US.utf8"
LC_PAPER="en_US.utf8"
LC_NAME="en_US.utf8"
LC_ADDRESS="en_US.utf8"
LC_TELEPHONE="en_US.utf8"
LC_MEASUREMENT="en_US.utf8"
LC_IDENTIFICATION="en_US.utf8"
LC_ALL=

Does this mean that I need to change "en_US.utf8" in etc/profile.d/locale.sh to "en_IN.utf8"



@ drakosha,

"crontab -l" gives me the following:

[root@bluehead shantanu]# crontab -l
#
# DO NOT EDIT THIS FILE MANUALLY!! USE crontab -e INSTEAD.
#

# <minute> <hour> <day> <month> <dow> <command>


01 * * * *  /usr/sbin/run-cron /etc/cron.hourly
02 00 * * * /usr/sbin/run-cron /etc/cron.daily
22 00 * * 0 /usr/sbin/run-cron /etc/cron.weekly
42 00 1 * * /usr/sbin/run-cron /etc/cron.monthly

It does not seem to suggest whether sbackup is in my crontab or not.

Also, i installed sback using pacman.

Offline

#10 2007-03-08 07:01:57

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: Backup-How to

There're two options to add sbackup to crontab:
1. using sbackup gui - will probably add sbackup to one of the directories /etc/cron.hourly, /etc/cron.daily... - depending on how often you configured it to run
2. adding it manually using "crontab -e".

I believe you did it via the gui. So, you need to take a look in the directories to check whether sbackupd is there. Here's my output:

>ls /etc/cron.*
/etc/cron.d:

/etc/cron.daily:
logrotate  shadow  updatedb  whatis

/etc/cron.hourly:

/etc/cron.monthly:

/etc/cron.weekly:

- note i have logrotate shadow updatedb  whatis - running daily.

So do the command above and check wheter sbackupd is there. If not - please write and i'll tell you how to add it manually.

Offline

#11 2007-03-08 07:52:20

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Backup-How to

in help page of sbackup ( http://sbackup.sourceforge.net/ConfiguringBackups ), it is mentioned that sbackup-config-gnome will get me the gui, but it says command not found and also there is no "/etc/sbackup.conf" file found.

Offline

#12 2007-03-08 09:12:31

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: Backup-How to

simple-backup-config is here: /sbin/simple-backup-config
you can list files of a package using "pacman -Qil pgk-name-here"

it'll probably create /etc/sbackup.conf

Last edited by drakosha (2007-03-08 09:13:51)

Offline

#13 2007-03-09 09:00:53

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Backup-How to

@drakosha, here is the list of file of sbackup

[shantanu@bluehead ~]$ sudo pacman -Qil sbackup
Password:
Name           : sbackup
Version        : 0.10.2-1
Groups         : None
Packager       : James Rayner <james@archlinux.org>
URL            : http://sbackup.sourceforge.net
License        : GPL 
Architecture   : i686
Size           : 381385
Build Date     : Fri Dec 22 23:42:56 2006 UTC
Install Date   : Wed Mar  7 11:09:02 2007 UTC
Install Script : No
Reason:        : explicitly installed
Provides       : None
Depends On     : gksu gnome-python-extras 
Required By    : None
Conflicts With : None
Description    : A simple backup solution intended for desktop use

sbackup /etc/
sbackup /sbin/
sbackup /sbin/sbackupd
sbackup /sbin/simple-backup-config
sbackup /sbin/simple-restore-gnome
sbackup /sbin/srestore.py
sbackup /sbin/upgrade_backups.py
sbackup /share/
sbackup /share/applications/
sbackup /share/applications/sbackup.desktop
sbackup /share/applications/srestore.desktop
sbackup /share/doc/
sbackup /share/doc/sbackup/
sbackup /share/locale/
sbackup /share/locale/es/
sbackup /share/locale/es/LC_MESSAGES/
sbackup /share/locale/es/LC_MESSAGES/sbackup.mo
sbackup /share/locale/lv/
sbackup /share/locale/lv/LC_MESSAGES/
sbackup /share/locale/lv/LC_MESSAGES/sbackup.mo
sbackup /share/locale/nl/
sbackup /share/locale/nl/LC_MESSAGES/
sbackup /share/locale/nl/LC_MESSAGES/sbackup.mo
sbackup /share/locale/pt_BR/
sbackup /share/locale/pt_BR/LC_MESSAGES/
sbackup /share/locale/pt_BR/LC_MESSAGES/sbackup.mo
sbackup /share/locale/sv/

On running the simple-backup-config, i got the following error:

[shantanu@bluehead ~]$ sudo /sbin/simple-backup-config 

(simple-backup-config:3672): Gtk-WARNING **: Locale not supported by C library.
        Using the fallback 'C' locale.

(simple-backup-config:3672): libglade-WARNING **: could not find glade file '/us                               r/share/sbackup/simple-backup-config.glade'
Traceback (most recent call last):
  File "/sbin/simple-backup-config", line 861, in ?
    i = SBConf()
  File "/sbin/simple-backup-config", line 86, in __init__
    self.widgets = gtk.glade.XML(self.conf.get("places", "prefix") + "/share/sba                               ckup/simple-backup-config.glade")
RuntimeError: could not create GladeXML object

Can anybody elaborate on the locale error. On starting other apps from commandline too i get the same error.

Offline

#14 2007-03-09 09:08:00

Purch
Member
From: Finland
Registered: 2006-02-23
Posts: 229

Re: Backup-How to

I use rsnapshot from community. http://www.rsnapshot.org/
Incremental backup is nice with hard links.

14G     /home/storage2/.snapshots/daily.0
394M    /home/storage2/.snapshots/daily.1
779M    /home/storage2/.snapshots/daily.2
377M    /home/storage2/.snapshots/daily.3
338M    /home/storage2/.snapshots/daily.4
447M    /home/storage2/.snapshots/daily.5
309M    /home/storage2/.snapshots/daily.6
348M    /home/storage2/.snapshots/weekly.0
465M    /home/storage2/.snapshots/weekly.1
329M    /home/storage2/.snapshots/weekly.2
357M    /home/storage2/.snapshots/weekly.3
278M    /home/storage2/.snapshots/weekly.4
408M    /home/storage2/.snapshots/monthly.0
1008M   /home/storage2/.snapshots/monthly.1
454M    /home/storage2/.snapshots/monthly.2
364M    /home/storage2/.snapshots/monthly.3
20G     total

Last edited by Purch (2007-03-09 09:19:01)

Offline

#15 2007-03-11 08:17:08

ravisghosh
Member
From: Intergalactic Spaces
Registered: 2006-10-12
Posts: 516
Website

Re: Backup-How to

After recent update, I found "simple backup config" and "simple backup restore" in xfce4 menu. Clicking on "simple backup config" does open "Enter Administrative Password" but nothing happens after that. Also, now "simple-backup-config" is not there in /sbin and hence running "/sbin/simple-backup-config" in console gives "command not found" error rather than the above error which i got earlier.

Offline

Board footer

Powered by FluxBB