-   Linux - Software (
-   -   Copying whole changed files - rsync? (

deadlock 12-03-2007 07:42 AM

Copying whole changed files - rsync?
We have a Wiki server that we need to backup - and that means copying the files to a windows server for writing to DVDs.

At the moment I have a cron script that uses smbmount to connect to the Windows server, and then uses rsync to update the copy of info on the Windows server.

At the moment this means that the DVDs contain the whole Wiki each time.

What I'd really like is to have the files that have changed each day in (dated?) folders - as whole files. Backing these up would reduce the write to DVD and match the rest of our backup strategy...

Can this be done with rsync?

Tx Dan

hellork 12-03-2007 06:00 PM

deadlock 12-04-2007 04:57 AM

Why thank you.

Having dug around a bit more there are a couple of specific issues with my set up on this

1) Can I use the -a flag over an smb mount? My gut says not...

2) I seem to have a problem in my current code:


rsync -b --backup-dir=/mnt/backup/$BACKUPDIR -rv test/ /mnt/backup/test/
$BACKUPDIR is set as

Date +%F
(e.g. 2007-12-04)

After running the command I get a folder called test on /mnt/backup and a dated folder on /mnt/backup - both containing exactly the same files - even if the files in ~/test/ haven't changed.

Is this because I'm not using the --delete option?

All times are GMT -5. The time now is 07:36 PM.