Skip to content

🚀 Added Immediate Backup Feature

Latest
Compare
Choose a tag to compare
@dharmeshmp dharmeshmp released this 06 Dec 10:29
· 1 commit to main since this release

We are excited to introduce the Immediate Backup feature to the rclone-copy-cron Docker image! 🎉

With this update, you can now run a backup immediately if the BACKUP_CRON environment variable is not set. This provides more flexibility for use cases that require on-demand backups without the need for scheduling.

What's New?

  • Immediate Backup Mode:

    • If BACKUP_CRON is not set, the container will:
      1. Start the backup process immediately.
      2. Copy files from the source to the destination using Rclone.
      3. Exit after the backup completes.
  • Improved Logging:

    • Clear logs for immediate backup runs, including start and completion status.

How to Use?

To run an immediate backup, simply omit the BACKUP_CRON environment variable in your Docker command:

docker run --rm \
  -e RCLONE_SOURCE=source:my-source-bucket \
  -e RCLONE_DESTINATION=backup:my-destination-bucket \
  -e RCLONE_OPTIONS="--progress --checksum" \
  dharmeshmp/rclone-copy-cron

This feature is perfect for one-time backup scenarios or testing your backup setup before scheduling.

Enhancements:

  • Dual-Mode Support: Use scheduled backups (BACKUP_CRON) or immediate backups without changing the container image.
  • Simplified usage for non-recurring backup needs.

We hope this new feature makes your backup management even more seamless and efficient. 🚀

Feel free to share your feedback or suggestions!