What is the problem you are having with rclone?
The following command is causing the RAM to go to 100%, freezing the docker containers/web server that is running.
This command created a tarball of the uploads folder (300 files, total 250MB), and then uses the sync command to sync them to my b2
DESTINATION=b2:xxxxxxx/xxxxxx
BACKUP_DIR=~/backup/backups
DB_DUMP_PATH=~/backup/db
UPLOADS_DIR=~/docker/uploads
docker exec docker-database-1 pg_dump directus -U directus | gzip > $DB_DUMP_PATH
tar -czvf $BACKUP_DIR/directus-backup-$(date +%F).tar.gz $DB_DUMP_PATH $UPLOADS_DIR
find "$BACKUP_DIR" -type f -name '*.gz' -mmin +720 -exec rm {} \;
rclone sync $BACKUP_DIR $DESTINATION --b2-hard-delete --fast-list
rclone cleanup
Run the command 'rclone version' and share the full output of the command.
rclone v1.64.2
- os/version: centos 7.9.2009 (64 bit)
- os/kernel: 3.10.0 (x86_64)
- os/type: linux
- os/arch: amd64
- go/version: go1.21.3
- go/linking: static
- go/tags: none
Which cloud storage system are you using? (eg Google Drive)
B2
The command you were trying to run (eg rclone copy /tmp remote:tmp
)
rclone sync $BACKUP_DIR $DESTINATION --b2-hard-delete --fast-list
Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.
[b2]
type = b2
account = XXX
key = XXX
A log from the command that you were trying to run with the -vv
flag
I'm afraid I can't (for now), I crashed the web server just a few minutes ago. I hope to get some advice without this step.