A web app that enables students to submit issues they see around the school and shares them with others so that everyone can upvote or downvote the issues. UpDown's goal is to gain consensus on pertinent school-wide improvements. Voted opinions are sent to the Student Senate, which uses data and statistics from UpDown to pursue legislative action.
Apache License 2.0
1
stars
1
forks
source link
Fix pullbackup deletes and rename pullbackup.py to pullBackup.py #78
I just fixed the commandline to rsync to specify the --remove-source-files in the right place.
I then tested it and found that it leaves a bunch of empty directories on the server, since it will only remove files not directories.
This is a common problem, e.g. see this question/answers on Stack Overflow. I used the suggestion there to make a separate call after rsync finishes to also delete empty directories.
I tested this manually and it seems to do the right thing! It completely empties out the server backup directory...
I just fixed the commandline to rsync to specify the
--remove-source-files
in the right place.I then tested it and found that it leaves a bunch of empty directories on the server, since it will only remove files not directories.
This is a common problem, e.g. see this question/answers on Stack Overflow. I used the suggestion there to make a separate call after
rsync
finishes to also delete empty directories.I tested this manually and it seems to do the right thing! It completely empties out the server backup directory...