Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-03-2007, 07:42 AM   #1
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Rep: Reputation: 15
Question 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
Old 12-03-2007, 06:00 PM   #2
Registered: Nov 2007
Posts: 41

Rep: Reputation: 15
Old 12-04-2007, 04:57 AM   #3
Registered: Apr 2003
Distribution: Red Hat
Posts: 65

Original Poster
Rep: Reputation: 15
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?


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
rsync: error while copying Fusi Linux - Software 5 06-09-2013 11:00 PM
Rsync not copying symlink davidb2002 Linux - Software 9 10-24-2007 03:17 PM
all my text files have changed to realmedia files erikus Linux - General 2 12-28-2006 04:43 PM
prevent rsync from copying open files? bkeeper Linux - General 2 12-11-2006 04:16 AM
Copying from Slackware 10 to Debian Sarge using rsync apolinsky Slackware 5 10-07-2004 09:17 AM

All times are GMT -5. The time now is 09:00 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration