Badal commited on
Commit ·
51c05f7
1
Parent(s): 155a456
Backup every 3 seconds
Browse files50 unmodified lines51525354555657585960616263646550 unmodified linesexit 1fi# Sync local TO bucket (backup) - quiet modehf sync "$SOURCE" "$BUCKET" \--exclude 'bun/*' \--exclude '.bun/*' \--exclude '*/cache/*' \--exclude 'node_modules/*' \--delete \--quiet# Note: Backup runs quietly every 3 secondssleep 3done50 unmodified lines515253545556575859606162636465666768697050 unmodified linesexit 1fi# Sync local TO bucket (backup)echo "$(date): Syncing backup..."hf sync "$SOURCE" "$BUCKET" \--exclude 'bun/*' \--exclude '.bun/*' \--exclude '*/cache/*' \--exclude 'node_modules/*' \--deleteif [ $? -eq 0 ]; thenecho "$(date): Backup cycle complete."elseecho "$(date): Backup failed!"fisleep 3done
entrypoint.sh+9-4