rsync deploy and file/directories permissions
Try it like this : –chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r It worked for me.
Try it like this : –chmod=Du=rwx,Dg=rx,Do=rx,Fu=rw,Fg=r,Fo=r It worked for me.
You need to add a –exclude all and it has to come after the –include rsync -zvr –include=”*.sh” –exclude=”*” $from/* root@$host:/home/tmp/
If you’re using –delete in your rsync command, the problem with calling grep -E -v ‘/$’ is that it will omit the information lines like: deleting folder1/ deleting folder2/ deleting folder3/folder4/ If you’re making a backup and the remote folder has been completely wiped out for X reason, it will also wipe out your local … Read more
Perhaps you could do this using a list of include patterns instead, and use –delete-excluded (which does as the name suggests)? Something like: rsync -r –include-from=<patternlistfile> –exclude=* –delete-excluded / dest/ If filenames are likely to contain wildcard characters (*, ? and [) then you may need to modify the Python to escape them: re.sub(“([[*?])”, r”\\\1″, … Read more
Sometime it’s just a detail. Just change your include pattern adding a trailing / at the end of include pattern and it’ll work: rsync -avz –delete –include=specs/install/project1/ \ –exclude=specs/* /srv/http/projects/project/ \ [email protected]:~/projects/project Or, in alternative, prepare a filter file like this: $ cat << EOF >pattern.txt > + specs/install/project1/ > – specs/* > EOF Then … Read more
Per the rsync “man” page, here are the error codes it could return and what they mean. If you’re scripting it in bash, you could look at $? 0 Success 1 Syntax or usage error 2 Protocol incompatibility 3 Errors selecting input/output files, dirs 4 Requested action not supported: an attempt was made to manipulate … Read more
The documentation for -v says increase verbosity. If the only thing you’re interested in is seeing more progress, you can chain -v together like so: rsync -avvvhr /sauce/folder/ [email protected]:/dest/folder/ and you should see more interesting progress. This could tell you if your copying requirements -a are stricter than you need and thus take a lot … Read more
rsync doesn’t work like that. Any file with a filename pattern that does not match any of the include or exclude patterns are considered to be included. In other words, think of the include pattern as a way of overriding exclude pattern. From the docs (emphasis mine): Rsync builds an ordered list of include/exclude options … Read more
Check that your \ characters have no whitespace after them at the end of the line. This will cause BASH to not interpret the line wrap correctly, giving the rsync error above.
I got things working again for anyone interested. I removed and re-installed nokogiri gem and everything seems to be working again.