Red Squirrel
No Lifer
Edit: NM, turns out the other script was actually what I was seeing, there's one that runs after that, I figured it was irrelevant because it was to copy other folders that were not there (it's a generic script I reuse) but turns out that's the one that was deleting stuff... I'll have to rethink my system. Removed that other script for now and all seems good.
So I have the following script to sync changes to one of my websites:
There's only a few folders that are in the exclude list. So it's not why it's deleting all this stuff. It's even deleting the entire www folder and all. I have like 20 similar scripts, they all work fine. :hmm: Though it seems a lot of them are breaking left and right... was there an update to rsync recently that breaks stuff or something?
Very simple script but for whatever reason, it's actually deleting practically everything on the server! This is DANGEROUS. Why is it doing this? The files that it's deleting actually exist in the source.
So I have the following script to sync changes to one of my websites:
Code:
echo "Syncing to host.com:"
echo "---------------"
rsync -rv -e "ssh -p 22" --checksum --dry-run --delete --exclude-from="syncexcludes_src.txt" "src/" "user@host.com:/home/rauclair/www/host.com/www/"
echo "---------------"
echo "Excluded these files from syncexcludes_src.txt:"
echo "----"
cat syncexcludes_src.txt
echo
echo "----"
There's only a few folders that are in the exclude list. So it's not why it's deleting all this stuff. It's even deleting the entire www folder and all. I have like 20 similar scripts, they all work fine. :hmm: Though it seems a lot of them are breaking left and right... was there an update to rsync recently that breaks stuff or something?
Very simple script but for whatever reason, it's actually deleting practically everything on the server! This is DANGEROUS. Why is it doing this? The files that it's deleting actually exist in the source.
Last edited: