Recent Problems Due to Update
by kevinbenko from LinuxQuestions.org on (#4ZTRK)
Running testing branch (named "Bullseye")
A recent update ALMOST screwed my backups.
I do an rsync with deleting old files, apparently the update, somehow, for some reason, renamed some of my mount locations.
I was a bit puzzled as my partitions had been pointing to the wrong mount points
I thought really hard and did a reboot, and everything went back to "normal". I changed my backup scripts to NOT do any deletions on my /home/VIDEO and /home/VDO partitions, and I will have to check these drives unless it happens again.
Question: Why did this happen, and does anyone else have similar problems?
I am including my backup script. It's not pretty, as I had a stroke in 2011 and I have really bad short-term-memory loss.
//begin horrible script
#!/bin/bash
rm -vfr /home/kevin/file\:
rm /home/kevin/.xsession-errors
rm /home/kevin/.wine/drive_c/Program\ Files/Steam/bin/cef/cef.win7/debug.log
rsync --archive --delete --verbose --progress --stats /bin /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /boot /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /etc /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /lib64 /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /lib /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /opt /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /PUBLIC /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /root /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /sbin /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /usr /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /var /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /home/kevin /home/BACKUP1/
rsync --one-file-system --archive --verbose --progress --stats /home/VDO /home/BACKUP1
rsync --one-file-system --archive --verbose --progress --stats /home/VIDEO/ /home/BACKUP2
//end horrible script
{{OK, I know it looks bad}}
Thank you for your time, and have a good day!


A recent update ALMOST screwed my backups.
I do an rsync with deleting old files, apparently the update, somehow, for some reason, renamed some of my mount locations.
I was a bit puzzled as my partitions had been pointing to the wrong mount points
I thought really hard and did a reboot, and everything went back to "normal". I changed my backup scripts to NOT do any deletions on my /home/VIDEO and /home/VDO partitions, and I will have to check these drives unless it happens again.
Question: Why did this happen, and does anyone else have similar problems?
I am including my backup script. It's not pretty, as I had a stroke in 2011 and I have really bad short-term-memory loss.
//begin horrible script
#!/bin/bash
rm -vfr /home/kevin/file\:
rm /home/kevin/.xsession-errors
rm /home/kevin/.wine/drive_c/Program\ Files/Steam/bin/cef/cef.win7/debug.log
rsync --archive --delete --verbose --progress --stats /bin /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /boot /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /etc /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /lib64 /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /lib /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /opt /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /PUBLIC /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /root /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /sbin /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /usr /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /var /home/BACKUP1/
rsync --archive --delete --verbose --progress --stats /home/kevin /home/BACKUP1/
rsync --one-file-system --archive --verbose --progress --stats /home/VDO /home/BACKUP1
rsync --one-file-system --archive --verbose --progress --stats /home/VIDEO/ /home/BACKUP2
//end horrible script
{{OK, I know it looks bad}}
Thank you for your time, and have a good day!