mirror of
https://gitea.blesmrt.net/mikaela/gist.git
synced 2025-08-19 12:57:22 +02:00
Compare commits
No commits in common. "c61e842965718d68fc03935b8be6c9583fd186f0" and "14101546d30ab8887869c07893f5e254144a05ab" have entirely different histories.
c61e842965
...
14101546d3
@ -8,15 +8,15 @@ 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 although I don't expect to be
|
# WARNING: This doesn't handle DST switch althůgh 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 -arv "$VMCDIR" "$BACKUPDIR/$(date +%Y-%jT%H%M)"
|
cp -rv "$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
|
||||||
chmod -R 777 $BACKUPDIR
|
chmod -R 777 $BACKUPDIR
|
||||||
|
|
||||||
# Curiosity, show the space used
|
# Curiosity, show the space used
|
||||||
du -hca --time $BACKUPDIR
|
du -hc --time $BACKUPDIR
|
||||||
|
|
||||||
set +x
|
set +x
|
||||||
|
Loading…
x
Reference in New Issue
Block a user