Automated backup

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
jram
Posts: 7
Joined: Mon Mar 13, 2017 6:42 pm

Automated backup

Post by jram » Thu Apr 06, 2017 11:55 pm

I found Dietpi Backup today - very useful thank you.

I wonder if there is a way of creating a Cron job to keep, say 3, backup sets on a drive? Grateful for your advice

John

User avatar
Fourdee
Site Admin
Posts: 2744
Joined: Tue Feb 06, 2007 12:36 pm

Re: Automated backup

Post by Fourdee » Sun Apr 09, 2017 9:52 am

jram wrote:I found Dietpi Backup today - very useful thank you.

I wonder if there is a way of creating a Cron job to keep, say 3, backup sets on a drive? Grateful for your advice

John
Hi John,

You can instigate a backup with:

Code: Select all

dietpi-backup 1
This will simply run the backup using current settings as defined in GUI.
Although, bear in mind, DietPi will stop all services before the backup starts, then restart them after completion.

Backup sets are only supported inside the main app (eg: by changing the backup/restore location as needed). However, you can change the backup location before running the above command in /DietPi/dietpi/.dietpi-backup_settings (FP_TARGET_BACKUP=), just be cautions doing this and ensuring paths are correct.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.

novitibo
Posts: 26
Joined: Mon Feb 29, 2016 4:11 pm

Re: Automated backup

Post by novitibo » Tue Feb 20, 2018 2:06 pm

what is the command for new cron job in webmin for dietpi-backup 1 ?

Post Reply