s3tools / s3cmd

Official s3cmd repo -- Command line tool for managing S3 compatible storage services (including Amazon S3 and CloudFront).
https://s3tools.org/s3cmd
GNU General Public License v2.0
4.58k stars 906 forks source link

Sync not working on linux centos 7 #1229

Open jxs714 opened 2 years ago

jxs714 commented 2 years ago

Hey guys

I am having an issue with s3cmd where sync does not work, and commands such as --skip-existing also does not work. I am trying to backup from Digital Ocean spaces and mirror it where if files are deleted, they are also deleted from the remote server. When I try sync, nothing happens, just a paused command line with no errors or updates even when I use --progress and --stats. I also tried get, which works fine, but when using the skip existing command, its still writing the entire root folder structure from DO to the server backup destination.

How can I get this to work properly so that I can create a cronjob? Here is the command I am using:

s3cmd sync s3://MYBUCKET/ /MYBACKUPSERVER/ --recursive --progress --stats --skip-existing

Please advise, thanks so much!

fviard commented 2 years ago

Hi, You can add the "-v" or "-d" flags to get a more detailed log of what is going on.