gayming/playstation2/backup-ops2l-vmc.bash: add a to cp flags & fix typo

This commit is contained in:
Aminda Suomalainen 2023-03-19 20:12:12 +02:00
parent 14101546d3
commit 7a84b50bec
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q

View File

@ -8,9 +8,9 @@ BACKUPDIR=~/PS2-VMC-backups
mkdir -p $BACKUPDIR mkdir -p $BACKUPDIR
# E.g. 2023-075TT1719, I don't think change of month matters and these are # E.g. 2023-075TT1719, I don't think change of month matters and these are
# going to be small 8MB files anyway so seeing the age at glance is nice. # going to be small 8MB files anyway so seeing the age at glance is nice.
# WARNING: This doesn't handle DST switch althůgh I don't expect to be # WARNING: This doesn't handle DST switch although I don't expect to be
# playing or running this script during the problem hours # playing or running this script during the problem hours
cp -rv "$VMCDIR" "$BACKUPDIR/$(date +%Y-%jT%H%M)" cp -arv "$VMCDIR" "$BACKUPDIR/$(date +%Y-%jT%H%M)"
# Samba is fun with permissions # Samba is fun with permissions
chmod -R 777 $VMCDIR chmod -R 777 $VMCDIR