Back to Cron Helper
Recipeawscloudbackups3
Sync Folder to AWS S3
Cron job to sync local files to an AWS S3 bucket.Using the AWS CLI, this job synchronizes a local directory with an S3 bucket. It only uploads new or modified files, making it an efficient way to back up user uploads, assets, or logs to the cloud automatically.
Cron Schedule
Every Hour
Runs at minute 0 of every hour (e.g., 1:00, 2:00, 3:00...).0 * * * *Command to Run
Copy and paste this command into your crontab or automation script
aws s3 sync /local/path s3://my-bucket/pathImplementation Examples
Unix/Linux Crontab
0 * * * * /path/to/script.sh
Python (with schedule library)
schedule.every().hour.do(job)
Node.js (with node-cron)
cron.schedule('0 * * * *', () => {
console.log('Running every hour');
});Go (with robfig/cron)
c.AddFunc("0 * * * *", func() { fmt.Println("Run every hour") })GitHub Actions Workflow
- cron: "0 * * * *"
Related Cron Recipes
Automate PostgreSQL Backups Daily
databasepostgresbackup
Automate MySQL Backups Daily
databasemysqlbackup
Automate MongoDB Backups Daily
databasemongodbbackup
Automate Redis RDB Snapshots
databaserediscache
PostgreSQL Vacuum Analyze
databasepostgresmaintenance
Rsync Incremental Backup
linuxbackupnetwork