ioi-2023 / contestant-vm

Contestant virtual machine for online IOI (since 2020)
1 stars 2 forks source link

inconsistent maximum backup size #72

Closed pobrn closed 1 year ago

pobrn commented 1 year ago

ioiconf.sh says

Backups will only include non-hidden files less than 1MB in size.

but ioibackup.sh has a limit of 100KiB and says

Backing up home directory. Only non-hidden files up to a maximum of 100 KB in size will be backed up.

radl97 commented 1 year ago

It is a missing update on the comment in ioiconf.sh:

commit 4fb023afecaf5eceeceaaed624bad0ceb5323bd6
Author: Ashar Fuadi <fushar@gmail.com>
Date:   Thu Jun 9 13:47:40 2022 +0700

    Lower the max file size limit for ioibackup

diff --git a/bin/ioibackup.sh b/bin/ioibackup.sh
index 9dde7dd..7adf149 100755
--- a/bin/ioibackup.sh
+++ b/bin/ioibackup.sh
@@ -24,12 +24,12 @@ echo $$ >> /opt/ioi/run/ioibackup.pid

 if [ "$MODE" = "backup" ]; then
        cat - <<EOM
-Backing up home directory. Only non-hidden files up to a maximum of 1 MB
+Backing up home directory. Only non-hidden files up to a maximum of 100 KB
 in size will be backed up.
 EOM
        rsync -e "ssh -i /opt/ioi/config/ssh/ioibackup" \
                -avz --delete \
-               --max-size=1M --bwlimit=1000 --exclude='.*' --exclude='*.pdf' ~ioi/ ioibackup@${BACKUP_SERVER}:
+               --max-size=100K --bwlimit=1000 --exclude='.*' --exclude='*.pdf' :