You are not logged in.

#1 2006-11-18 10:32:13

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

tar backups to usbdrive...

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

#2 2006-11-18 10:51:40

brazzmonkey
Member
From: between keyboard and chair
Registered: 2006-03-16
Posts: 818

Re: tar backups to usbdrive...

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

#3 2006-11-18 10:58:15

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: tar backups to usbdrive...

would rather use cli ... rsync never had no luck with it ... KDE!!!! nooooo lol


Mr Green

Offline

#4 2006-11-18 12:42:44

T-Dawg
Forum Fellow
From: Charlotte, NC
Registered: 2005-01-29
Posts: 2,736

Re: tar backups to usbdrive...

Mr Green wrote:

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

#5 2006-11-18 13:07:20

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,899
Website

Re: tar backups to usbdrive...

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

#6 2006-11-18 16:46:05

petsei
Member
From: Heddesheim Germany
Registered: 2006-07-13
Posts: 1

Re: tar backups to usbdrive...

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

Board footer

Powered by FluxBB