mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2025-08-18 04:07:38 +02:00
Compare commits
2 Commits
14101546d3
...
c61e842965
Author | SHA1 | Date | |
---|---|---|---|
c61e842965 | |||
7a84b50bec |
@ -8,15 +8,15 @@ BACKUPDIR=~/PS2-VMC-backups
|
||||
mkdir -p $BACKUPDIR
|
||||
# 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.
|
||||
# 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
|
||||
cp -rv "$VMCDIR" "$BACKUPDIR/$(date +%Y-%jT%H%M)"
|
||||
cp -arv "$VMCDIR" "$BACKUPDIR/$(date +%Y-%jT%H%M)"
|
||||
|
||||
# Samba is fun with permissions
|
||||
chmod -R 777 $VMCDIR
|
||||
chmod -R 777 $BACKUPDIR
|
||||
|
||||
# Curiosity, show the space used
|
||||
du -hc --time $BACKUPDIR
|
||||
du -hca --time $BACKUPDIR
|
||||
|
||||
set +x
|
||||
|
Loading…
x
Reference in New Issue
Block a user