Skip to main content

Timeline for Bash script to rsync website

Current License: CC BY-SA 4.0

6 events
when toggle format what by license comment
Jun 13, 2018 at 17:37 comment added ccdavies Am I correct in thinking that as I am using 'set -e', if the 'site_source' didn't exist, then the script would exit?
Jun 13, 2018 at 15:49 comment added ccdavies Thanks. Is there anything you would suggest to protect the 'source' from rsync?
Jun 13, 2018 at 15:23 comment added chicks Since rsync can fill or empty disks I tend to be pretty cautious about invoking it, but if this is fine for your use case so be it. It was just something to consider and not something necessarily wrong with the code. And it sounds like you considered it so cool.
Jun 13, 2018 at 14:23 comment added ccdavies Hi Chicks. Thank you! I have been running over your points and applying and learning them as I go. The 'shell check' site is fantastic! Regarding your 6th point. Here are you suggesting that I check if the 'site source' and 'site destination' exist? If the db fails, I am logging this, so I am happy for the remainder to run. Correct me if I am way off here. Really appreciate your help.
Jun 11, 2018 at 19:25 history edited janos CC BY-SA 4.0
Fix backtick format
Jun 11, 2018 at 16:08 history answered chicks CC BY-SA 4.0