Skip to content

Instantly share code, notes, and snippets.

@sajanp
Created September 20, 2020 16:23
Show Gist options
  • Save sajanp/dc558d894c65fbce7767dd66b6701bde to your computer and use it in GitHub Desktop.
Save sajanp/dc558d894c65fbce7767dd66b6701bde to your computer and use it in GitHub Desktop.
#!/bin/bash
date=$(date +"%m-%d-%Y")
if [ "$1" == "job-end" ]; then
rclone move /var/lib/vz/dump/ b2:my-proxmox-server/vzdumps/$date/
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment