Home > Backup Your Linux Remotely Using Rsync Command > Backup Your Linux Remotely Using Rsync Command
Backup Your Linux Remotely Using Rsync Command
Posted on Saturday, October 15, 2011 by android apps market for tablests
Rsync Is A Command In Linux Which Stands For Remote Sync. It Is Used For Backing Up The Data. It Synchronizes The Directories And Files From One Location To Another In A Good Way. The Backup Destination Could Be Either On Local Or On Remote Server.$ Rsync -Avz Chankey@192.168.200.10:/Var/Lib/Rpm /Root/Temp
Case 6: Select Remote Shell
$ Rsync -Avz -E Ssh Chankey@192.168.200.10:/Var/Lib/Rpm /Root/Temp
rsync -e ssh => uses the ssh shell for remote sync
Case 7: Do Not Overwrite Modified File At Destination
If the file at the destination is modified and if we don’t want to change it back to the old one again then using rsync -u option.
$ Rsync -Avzu Chankey@192.168.200.10:/Var/Lib/Rpm /Root/Temp
Case 8: Synchronize Only The Directory Tree Structure (Not Files)
use rsync -d option for this purpose.
$ Rsync -V -D Chankey@192.168.200.10:/Var/Lib/ .
Case 9: Do Not Create New File At Destination, Just Update Existing Files
use –existing option
$ Rsync -Avz --Existing Root@192.168.1.2:/Var/Lib/Rpm/ .
Case 10: Transfer The Entire File
use rsync -W option
# Rsync -AvzW Chankey@192.168.200.10:/Var/Lib/Rpm/ /Root/Temp
Features:
- Speed: Rsync Replicates All The Data From Source To Destination And Then It Transferes Only The Changed Blocks/Bytes To The Destination. This Makes The Transfer Fast.
- Security: It Uses Encryption Using Ssh Technique.
- Bandwidth: It Compresses The Block At Source And Then At The Receiving End It Decompresses The Block. It Transfers The Data Block By Block Using Compression And Decompression At Source And Destination Side Respectively. Hence Uses Less Bandwidth.
- Privileges: No Extra Privileges Are Required To Use Rsync.
Syntax
$ Rsync Options Source Destination
Case 1: Synchronize Two Directories In Local Server
use rsync -zvr command (z to enable compression, v for verbose, r for recursive)
$ Rsync -Zvr /Var/Opt/Installation/Inventory/ /Root/Temp
The above command does not preserves the timestamp.
Case 2: Preserve Timestamps Using Rsync -A
The -a options preserves symbolic links, permissions, timestamp, owner and group.
$ Rsync -Azv /Var/Opt/Installation/Inventory/ /Root/Temp/
Case 3: Synchronize Only A Single File
Specify the file name to the rsync command
$ Rsync -V /Var/Lib/Rpm/Pubkeys /Root/Temp/
Case 4: Synchronize Files Local->Remote
$ Rsync -Avz /Root/Temp/ Chankey@192.168.200.10:/Home/Chankey/Temp/
Case 5: Synchronize Files Remote->Local
$ Rsync -Avz Chankey@192.168.200.10:/Var/Lib/Rpm /Root/Temp
Case 6: Select Remote Shell
$ Rsync -Avz -E Ssh Chankey@192.168.200.10:/Var/Lib/Rpm /Root/Temp
rsync -e ssh => uses the ssh shell for remote sync
Case 7: Do Not Overwrite Modified File At Destination
If the file at the destination is modified and if we don’t want to change it back to the old one again then using rsync -u option.
$ Rsync -Avzu Chankey@192.168.200.10:/Var/Lib/Rpm /Root/Temp
Case 8: Synchronize Only The Directory Tree Structure (Not Files)
use rsync -d option for this purpose.
$ Rsync -V -D Chankey@192.168.200.10:/Var/Lib/ .
Case 9: Do Not Create New File At Destination, Just Update Existing Files
use –existing option
$ Rsync -Avz --Existing Root@192.168.1.2:/Var/Lib/Rpm/ .
Case 10: Transfer The Entire File
use rsync -W option
# Rsync -AvzW Chankey@192.168.200.10:/Var/Lib/Rpm/ /Root/Temp
Category Article Backup Your Linux Remotely Using Rsync Command
Powered by Blogger.
Blog Archive
-
▼
2011
(4034)
-
▼
October
(219)
- Samsung Galaxy 5 features
- How To Reset All Nokia C2-03 Phone
- Apple Plans To Launch 3D Maps IOS Application?
- Chrome Is The Most Popular Among Readers TechRadar
- IPlayer Could Soon Belong To The TV License
- Jailbreak IPhone Advantage
- Get The IPhone Interface On Your Android Phone
- Google Reader Gets Redesigned To Mixed Reactions!
- October Reflections
- Best Web Browser For Linux: 5 Tested
- Top 5 Cheapest Android Phones
- 5 Best Programs To Speed Up Your PC
- Review: Asus UX31 Zenbook
- Motorola Atrix 2 Review
- T-Mobile To Offer Nokia Lumia 800 In The UK
- Explanation: The Future Of Computer Graphics
- Google Maps Allows You To Walk Inside The Buildings
- Google TV 2.0 Honeycomb, Android Market Applications
- Challenge Completed: RIP
- Sunday Salon: Week In Review #43
- HP WebOS Comes Out, Says Report
- RIM: BlackBerry Buy Two Get One Free Playbooks
- How To You Remove Subscribers From Facebook?
- Tutorial: How To Speed Up Your Hard Drive
- Tutorial: How To Do More With Your Mac
- Useful Web Applications Online
- 5 Best News Aggregators To Keep Yourself Updated
- Find Your Information Alumni On LinkedIn
- Online Tools ASCII Flowcharts
- Develop The Storage Device With IOS Kingston Wi-Dr...
- Game: The Godfather II Review
- Windows 8: Tips And Tricks
- Blog Wars: Impact of WordPress, Tumblr and Blogger
- Remove Blogger Dynamic View Search Bar
- The Classics Circuit: Frankenstein
- RIM Confirms BlackBerry PlayBook OS 2.0 Release Date
- Samsung Champ 3.5G Features
- Best media streamer for Mac: 6 reviewed
- Facebook Shameful Failures [Infographic]
- Netbook Vs Tablet - Making The Right Choice
- How To Save Battery Life, The IPhone 4S
- Asus Eee Pad Slider Review
- Nokia First Windows Phone Revealed
- Samsung Galaxy Nexus Review
- Canon Pixma Pro-1 Review
- The Wikkeling (MG)
- Create Fake Facebook Wall posts of your friends [H...
- Chrome Web Store Gets New Design to Improve User E...
- Google Buzz is shutting down; how to export your B...
- 10 Latest Smart Phones in India this Diwali!
- What's On Your Nightstand (October)
- Apple MacBook Pro Range Gets Update
- Dell XPS 14Z Unleashed
- Review: Dell XPS 14z
- Download Angry Birds Offline PC
- Jake Ransom and the Howling Sphinx (MG)
- 5 Best Blogspot Blogger Hacks Everyone Should Use
- Automatically Play Songs While File Download is in...
- Play and Sync Android Apps on Your Windows Desktop
- Integrate Google+ Profile into Blogspot/Blogger
- Download iOS 5 for iPhone 4, 3GS, iPad, iPad 2 and...
- Top 10 Best iPhone Games
- Counter Strike 1.6 Free Direct Download
- Adding an Image Next to Blogger Post Title
- Twitter - Do You Want Instant Traffic To Your Webs...
- SEO Strategy - 3 no More Effective Tactics
- SEO Strategy - 3 no More Effective Tactics
- Web Traffic To Increase Your Search By Using Keywo...
- Jake Ransom and the Skull King's Shadow (MG)
- Update: Motorola Razr Confirmed For The UK
- 'Week' Android 4.0 Update After Plunging Galaxy Ne...
- Android 4.0 Update Motorola Razr Confirmed For 2012
- Google Confirms Digital Music Store "With Twist"
- How To Install Perl Modules On CPAN?
- Tutorial: Hack Virtual 1980s Networks With Telehack
- Solution for “This installation can only be uninst...
- Today The Apple IPod Is 10 Years Old
- Sunday Salon: Week in Review #42
- Asphalt 6: Adrenaline Game Review
- The Difference Between LCD And LED TV
- Top 5 Photo Editing Software
- Use Adobe online image editor
- Portal 2 Is Golden Joystick Awards Game Of The Year
- Tablet Aakash Cheaper For Just Rs. 3000
- 5 Tips For Bloggers Who Use Facebook
- Social Micropayment Program for Bloggers – Flattr
- How to Embed Tweets on Self-Hosted WordPress
- Library Loot: Third trip in October
- Get 500+ backlinks every day totally free seo
- Simplest Way to Move Your Orkut Albums to Google+
- SMStweet – Simple Service to Tweet by SMS in India
- Download Facebook Messenger for iPhone, Android an...
- Free Premium BlackBerry Applications In India, And...
- Best way Find Friends On Facebook On Twitter
- Remove 'Recommend this on Google' from Blogger Pos...
- Wonderland Creek
- Oliver Twist
- Ubuntu Transformation Pack For Windows XP, Vista A...
- Backup And Restore Activation Status Of Windows XP...
- How To Find The WEP Key
-
▼
October
(219)