- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- rsync incremental backup
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 01:47 AM
тАО07-24-2009 01:47 AM
rsync incremental backup
rsync -av /data /backup
/data is source and /backup is destination
right now I have only single /backup that is obviously exactly the same as /data,
but I want to keep /backup of each day(like incremental backup) e.g /backup of Monday, and /backup of Tuesday, and /backup of Wednesday etc via rsync.
i.e in short how can I use rsync to take incremental backup of /data
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 02:02 AM
тАО07-24-2009 02:02 AM
Re: rsync incremental backup
Take a look at rdiff-backuo.
Regards,
Goran
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 03:26 AM
тАО07-24-2009 03:26 AM
Re: rsync incremental backup
rsync is really good about taking changed files and making the /backup look like production with minimum band width.
If there are 5000 files in the source system and during the day only 50 of them changed, then rsync will only copy over the 50 that were changed.
But at backup time /backup will look like the production system.
Good for restore, but not an incremental backup.
Here is a way to take an incremental.
find /data -mtime -1 -exec cp -pr /backup {}
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 05:57 AM
тАО07-24-2009 05:57 AM
Re: rsync incremental backup
Probably, it's better to use "star" to perform remote incremental backups.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-24-2009 06:23 PM
тАО07-24-2009 06:23 PM
Re: rsync incremental backup
http://rsync.samba.org/examples.html
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО07-25-2009 08:11 AM
тАО07-25-2009 08:11 AM
Re: rsync incremental backup
Hi Goran Koruga thanks for help, sorry didnt checked 'rdiff-backup' yet, but as soon I got time, I will definitely check, and then I will also submit point to your post.
>Here is a way to take an incremental.
>find /data -mtime -1 -exec cp -pr /backup {}
Hi SEP, thanks for help
and help me in this(following) issue
test-back:/devel_x098 # find /devel_x098/AchDev_dvl1/ -mtime -1 -type f -print
/devel_x098/AchDev_dvl1/M AHSAN/text/16BIT_roof108_ROOF.jpg
/devel_x098/AchDev_dvl1/M AHSAN/text/New Folder/Thumbs.db
/devel_x098/AchDev_dvl1/M AHSAN/text/New Folder/brick222225.psd
/devel_x098/AchDev_dvl1/ADEEL AHMED/STATUS REPORT OF 09-07-09.ods
test-back:/devel_x098 # find /devel_x098/AchDev_dvl1/ -mtime -1 -type f -exec cp -rv bck/ {} \;
cp: cannot overwrite non-directory `/devel_x098/AchDev_dvl1/M AHSAN/text/16BIT_roof108_ROOF.jpg' with directory `bck/'
cp: cannot overwrite non-directory `/devel_x098/AchDev_dvl1/M AHSAN/text/New Folder/Thumbs.db' with directory `bck/'
cp: cannot overwrite non-directory `/devel_x098/AchDev_dvl1/M AHSAN/text/New Folder/brick222225.psd' with directory `bck/'
cp: cannot overwrite non-directory `/devel_x098/AchDev_dvl1/ADEEL AHMED/STATUS REPORT OF 09-07-09.ods' with directory `bck/'
test-back:/devel_x098 # ls bck/
test-back:/devel_x098 #
test-back:/devel_x098 # find /devel_x098/AchDev_dvl1/ -mtime -1 -type f -exec cp -v bck/ {} \;
cp: omitting directory `bck/'
cp: omitting directory `bck/'
cp: omitting directory `bck/'
cp: omitting directory `bck/'
test-back:/devel_x098 # ls bck/
test-back:/devel_x098 #
the 'bck' is empty.
actually this(/devel_x098) is a samba server share(windows xp users access this directory)...and I have to take regular backups of this directory(/devel_x098)
>Why do you want to do it with rsync? If you want to have different
>backup versions, you should use "incremental" backups.
HI Ivan Ferreira, thanks for help
Yeah I do agree with you, but I dont know why but neither I can take incremental backups via 'find' nor I can take incremental backups via 'tar'
e.g
tar -zc -g bck/snapshot_file -f /bck/bck_full.tar.gz /devel_x098
then I create some new files under /devel_x098, and modify some of the already existing files.
but when I take the new backup(incremental) its again a full/complete backup and not the incremental backup, I did the following
tar -zc -g bck/snapshot_file -f /bck/bck_$(date '+%d-%m-%Y').tar.gz /devel_x098
the above command creates another backup but not the incremental but another full/complete backup
du -h bck/*.tar.gz
2.5G bck_full.tar.gz
2.5G bck_25-07-2009.tar.gz
thats why I am trying to take inc backup via rsync.
I would love and appreciate if you guys help me in taking incremental backups via 'tar' and/or 'find'.
>http://rsync.samba.org/examples.html
Hi Jimmy Vance, thanks for help.
Yes I am reading the website ... and will try to implement ..let see.
Regards
Maaz