You are not logged in.
Pages: 1
Hi,
I'm trying out using tar to backup system files to my usbdrive
This command
tar -cvzf /dev/sdd1 -g /backups/etc.snap /etc
backs up /etc to usbdrive & puts a snapshot of files in //backup/etc.snap idea being that I will only have to update changed files or new files
thing is atm it just drops a filename call z in /dev/sdd1 which means nothing lol
Would be nicer to have it named something like etcbackup.taz.gz
/me looks at manual
Atm I would like a simple cli way of backing up /home /etc [maybe pacman stuff!] :?:
Mr Green
Offline
you probably have to use something related to rsync, rdiff-backup (latter is in AUR). i'm no expert in such things, so for a similar task i use keep (in AUR), a KDE frontend.
what goes up must come down
Offline
would rather use cli ... rsync never had no luck with it ... KDE!!!! nooooo lol
Mr Green
Offline
would rather use cli ... rsync never had no luck with it ... KDE!!!! nooooo lol
Now just what in the *hell* do you mean you can't get rsync to work? Its the greatest thing since sliced bread.
Lem'me show 'ya somethin'!:
tyler@tungsten ~ $ cat /etc/cron.daily/archbu
#!/bin/bash
backupdir="/mnt/hdb5/backup/arch"
[ ! -f $backupdir ] && mkdir -p $backupdir
rsync -av --delete /etc /home/tyler $backupdir
Look at that. Just look at it. Exact mirror copy. Beautiful.
Offline
brb going to test script ......
I could have just used cp-ax :?
Me wants to go from /etc > tarball > usbdrive
maybe I'll tar /backup then move it to drive emmm
Mr Green
Offline
Hi ,
in a backupscript of mine I use the following code :
tar -cjp -X $NOPACK -f $PACKFILE $BACKIDIR
-X $NOPACK directs tar to ignore the files listed in the file NOPACK
-f $BACKFILE gives tar the name and place of the file to pack in
and finally $BACKDIR is the Directory I want to be backed up.
Greatings
petsei 8)
schaun wir mal genau hin..
Offline
Pages: 1