4
votes
1answer
8k views

How to exclude multiple directories with rsync?

I am trying to backup my home directory using rsync, and I want to exclude some of the directories that contain junk. I want to specifically exclude /home/ben/.ccache and /home/ben/build. ...
2
votes
3answers
2k views

Where is my Android phone's mount point, so I can rsync it?

I would like to rsync my music with my Android phone (Galaxy Nexus), I'm trying to work out the mount path to use from the shell. The mount command doesn't show up on the phone. In Nautilus the ...
-1
votes
2answers
4k views

How do rsync from within a python script? [closed]

I plan to move file from one system to another system. For this, I am using rsync command in linux terminal. It works fine. But I need to implement this command to python. I am very new in python, so ...
0
votes
1answer
214 views

How to read the password from variable?

I am trying to move my file to another system which is located in some other place, with this command: rsync -avrz src destination It works fine. But what I need is to put this command in shell ...
2
votes
1answer
2k views

rsync between two directories

Currently I use rsync -avh --stats --progress dir1(source)say dir2(destination) ... say I have 10 files in dir1 and I have copied using the above command to dir2 all 10 files. Say now I have ...
6
votes
3answers
709 views

directory name with space and bash

I'd like to exclude the directories "temp" and "Ubuntu One/" from backup. What is the correct escaping of the space???? RSYNCCONF="--delete --exclude=.* --exclude=temp/" Thanks in advance! Chris ...
6
votes
2answers
9k views

Forceably set permissions when running rsync

Currently I am backing up gigabytes and gigabytes of data from a live server to a backup server using an rsync/ssh combination script, allowing for automated operation every night with a cron job. ...