cd <path to Snaps.sln>
dotnet build -c Release
nano ~/.bashrc
alias snaps="dotnet /xxx/xxx/Snaps.dll>"
snaps settings -t <Your DigitanlOcean API token>
snaps settings -mc <numebr> #Max degree of concurrency for create snapshot (default 5)
snaps list -d # Get your list droplets
snaps snapshot <droplet ids> -d # Create a snapshot for droplets
For example:
snaps list -d
snaps snapshot 1 2 3 4 -d
snaps list -v # Get your list volumes
snaps snapshot <volume ids> -v # Create a snapshot for volumes
For example:
snaps list -v
snaps snapshot 1 2 3 4 -v
crontab -e
* * * * * snaps snapshot <droplet ids> -d # Create a snapshot for droplets
* * * * * snaps snapshot <volume ids> -v # Create a snapshot for volumes
snaps list -d -o /home/dproplets.csv # Export droplet ids to a file
snaps list -v -o /home/volumes.csv # Export volume ids to a file
crontab -e
* * * * * snaps snapshot -d -f /home/dproplets.csv # Import droplet ids from a file
* * * * * snaps snapshot -v -f /home/dproplets.csv # Import volume ids from a file