nuvo / kube-tasks

A tool to perform simple Kubernetes related actions
Apache License 2.0
23 stars 30 forks source link

sync , not copy #7

Open ozbillwang opened 3 years ago

ozbillwang commented 3 years ago

Thanks to make this work, but could we have an option to only sync the folder to s3 with --delete option?

such as the aws cli:

aws s3 sync /var/jenkins_home s3://<jenkins_backup_bucket>/backup --delete 

With that I can save a lot of time to sync the backup to s3, more than to full copy them again, and I have enabled version control on s3 bucket.