All Questions
6
questions
-1
votes
1
answer
731
views
Bash function with dry-run and exec options [closed]
Am writing a bash function to run rsync, with possibility of using --dry-run option and --exec option. Need some criticism improvements and additional checks.
Might not make much sense for the user ...
-1
votes
1
answer
62
views
Why does adding -prune to my sync script cause rsync to do a DRY-RUN?
I'm testing a script to do a by-directional sync of two directories intelligently using rsync.
Since I'm testing many of the rsync options are not applicable to the testing environment including the ...
6
votes
1
answer
5k
views
rsync: Why doesn't --archive imply --recursive when --files-from=FILE is used?
Using -r or --recursive causes rsync to recurse into directories. -a or --archive equals -rlptgoD, so -a implies -r.
If I have directories source/ and dest/ and I run:
rsync source dest
then rsync ...
1
vote
1
answer
821
views
rsync: How can I pull the --exclude-from file from the remote host?
I'm setting up automated rsync across the network, using (or attempting to use) the following command:
rsync -e ssh -avhxAXHr --rsync-path="sudo rsync" --exclude-from=:$EXCLUDEFILE --link-dest=$...
0
votes
1
answer
4k
views
Use of Verbose in a cron job
I'm busy setting up a back-up script to run on my Pi using rsync.
I see that a number of people use the -v option in their cron jobs. Why? It's going to be run as root, and not in a terminal where ...
4
votes
0
answers
2k
views
Using rsync with the verbose option and filtering the information displayed
I am using rsync with the -a -r and -v options to copy files and directories from one server to another.
This all works fine. But when I make a change, for example, to a single file on the source ...