NetAdminTools.com
 
SignalQ Sites:
L1G3R Information Systems - Coprolite - SpotBridge - NAW
RoboCoop - AreWeDown - SolarPower - SysAdminTools
Xfig - Gold Loaf - GeekPapa - FixGMC - FixRambler
Solar Energy - Energy Efficiency - Solar Panels
Home Energy Savings
Categories:
GNU/Linux | Homebrew designs | Perl | Ruby | Administration | Backup/Recovery | Bugs/Fixes | Certification | Database | Email | File/Print | Hardware | Information Grab Bag | Interoperability | GNU/Linux ABCs | Monitoring | Name Resolution | Network Services | Networking | Remote Control | Security | Desktop | Web | BSD | Solaris | GIAGD | ERP | REALbasic

Last 30 Days | Last 60 Days | Last 90 Days | All Articles | RSS


Categories:
·GNU/Linux
·Homebrew designs
·Perl
·Ruby
·Administration
·Backup/Recovery
·Bugs/Fixes
·Certification
·Database
·Email
·File/Print
·Hardware
·Information Grab Bag
·Interoperability
·GNU/Linux ABCs
·Monitoring
·Name Resolution
·Network Services
·Networking
·Remote Control
·Security
·Desktop
·Web
·BSD
·Solaris
·GIAGD
·ERP
·REALbasic
·All Categories


Rsync Over a Flakey Connection
Topic:Backup/Recovery   Date: 2006-01-22
Printer Friendly: Print   

spacerspacer
<<  <   >  >>

Subject

By default, rsync will start the sync of a particular file over again if the connection is lost. Use the --inplace option if the sync is getting hung up on a large file:

rsync -e 'ssh -p sshport' -av --inplace /source/ root@example.com:/dest/

Since the problem file is compressed, it does no good to use -avz, so we just used -av. In this particular example, we do not have the --delete option. This can be useful if you are doing multiple rsyncs: a full one, and more selective ones with just the smaller files. That is, you could move the large files away, and do a sync to get as many file in place for the restore as quickly as possible, but run a more complete sync in parallel. If the --delete option is used, then the big files will get deleted if they exist at the destination. Here is a command that uses compression and delete without the --inplace options:

rsync -e 'ssh -p sshport' --delete -avz --exclude "/ex/" root@example.com:/ /dst/

This command will sync up the root directory with the local /dst/ directory, use compression, and will delete files in the /dst/ directory that were not in the root of root@example.com. It excludes all files in the /ex/ directory.


People:
Places:
Things:
Times:





Please read our Terms of Use and our Privacy Policy
Microsoft, Windows, Windows XP, Windows 2003, Windows 2000, and NT are either trademarks or registered trademarks of Microsoft Corporation. NetAdminTools.com is not affiliated with Microsoft Corporation. Linux is a registered trademark of Linus Torvalds, and refers to the Linux kernel. The operating system of most distributions that contain the Linux kernel is GNU/Linux. All logos and trademarks in this site are property of their respective owner. Copyright 1997-2011 NetAdminTools.com