LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices

Reply
 
LinkBack Search this Thread
Old 12-03-2007, 07:42 AM   #1
deadlock
Member
 
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
hellork
Member
 
Registered: Nov 2007
Posts: 41

Rep: Reputation: 15
http://www.google.com/search?q=rsync+incremental
 
Old 12-04-2007, 04:57 AM   #3
deadlock
Member
 
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:

Code:
rsync -b --backup-dir=/mnt/backup/$BACKUPDIR -rv test/ /mnt/backup/test/
$BACKUPDIR is set as
Code:
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?
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are 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 03:31 AM.

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