Comments on: Mastering rsync and Bash to Backup Your Linux Desktop or Server http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/ PC enthusiasts one-stop resource for high-quality reviews, articles and current technology news. Fri, 24 Jul 2015 18:54:00 +0000 hourly 1 By: Rob Williams http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/#comment-10113 Wed, 01 Jul 2015 15:43:00 +0000 http://techgage.com/?post_type=article&p=21078#comment-10113 Oh, that’s some great info, thanks! I’ll give that a test later. It’d make the command just a bit simpler, which is nice.

]]>
By: jimispire http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/#comment-10112 Wed, 01 Jul 2015 15:40:00 +0000 http://techgage.com/?post_type=article&p=21078#comment-10112 Yes, pushing to a remote server. And it seems like if your are supplying a user and address in the format: “user@server.com”, rsync is sending the command through SSH by default.

Now, of course i had installed the local id_rsa.pub key to the remote server beforehand!

Works just fine!

]]>
By: Rob Williams http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/#comment-10111 Wed, 01 Jul 2015 15:33:00 +0000 http://techgage.com/?post_type=article&p=21078#comment-10111 I misunderstood. I thought you meant that you had to change the command up to accomplish the same goal, whereas in reality, you are pushing the data rather than pulling it. I remain confused about the lack of need for ‘-e ssh’ though, as you said you are pushing the data to an entirely different server. Is the remote folder locally mounted or something?

]]>
By: jimispire http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/#comment-10109 Wed, 01 Jul 2015 15:20:00 +0000 http://techgage.com/?post_type=article&p=21078#comment-10109 Did i say why i used that for?
Looks like I need to clarify that my objective was to backup an entire directory from the server which ran the command (not my local machine) to another backup remote server.

As of your command, maybe you were trying to rsync from a remote server to your local machine? Is that so?

]]>
By: Rob Williams http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/#comment-10108 Wed, 01 Jul 2015 15:08:00 +0000 http://techgage.com/?post_type=article&p=21078#comment-10108 Hmm, that’s interesting. I use that original syntax multiple times a week to back up our Debian server. I’ve only had to swap the /remote/ with /local/ when I’ve had to reverse the transfer direction.

]]>
By: jimispire http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/#comment-10106 Wed, 01 Jul 2015 12:57:00 +0000 http://techgage.com/?post_type=article&p=21078#comment-10106 Thanks for the valuable info, although on a ubuntu server the “rsync –av ––delete -e ssh root@targetipaddress:/remotefolder/ /localfolder/” spits out a “skipping directory .”

So in order to work, i had to switch the “source” and “target” and at the same time get rid of the -e ssh flag and command, as SSH seems to be used de facto by rsync to connect to remote addresses.

]]>
By: Rob Williams http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/#comment-7070 Fri, 26 Dec 2014 20:13:00 +0000 http://techgage.com/?post_type=article&p=21078#comment-7070 All of those switches except for –delete are covered in the “Run-down of Common rsync Switches & Processes” section, while –delete is explained under “Removing Old Files from the Target to Keep a Perfect Sync”.

rsync –av ––delete -e ssh root@192.168.1.5:/source/ /target/

Broken down, that’s:

-av: archive mode; includes all folders/sub-folders and files inside them.
-e: calls up an external app, like ssh.
–delete: deletes files on the source that no longer exist on the target; that’d in effect mirror folder A to folder B.

If I am misunderstanding and there’s something else you need clearing up, please let me know.

]]>
By: konga http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/#comment-7069 Fri, 26 Dec 2014 14:00:00 +0000 http://techgage.com/?post_type=article&p=21078#comment-7069 good article . you did not explain the terms used here or what these are rsync –av ––delete -e ssh root@192.168.1.5:/home/techgage/ /mnt/NAS/Backups/MainPC/techgage/
rsync –av ––delete -e ssh root@targetipaddress:/remotefolder/ /localfolder/

]]>
By: Andy Wright http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/#comment-3598 Tue, 04 Feb 2014 17:06:00 +0000 http://techgage.com/?post_type=article&p=21078#comment-3598 Quatermass:
https://play.google.com/store/apps/details?id=eu.kowalczuk.rsync4android&hl=en

]]>
By: billtheamerican http://techgage.com/article/mastering-rsync-and-bash-to-backup-your-linux-desktop-or-server/#comment-3469 Sat, 11 Jan 2014 19:13:00 +0000 http://techgage.com/?post_type=article&p=21078#comment-3469 This is from around 1999 but still the very best rsync tutorial I’ve ever read: http://tinyurl.com/l37guv8

]]>