dietpi-backup via crontab?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Post Reply
scr44tch

dietpi-backup via crontab?

Post by scr44tch »

is it possible to auto backup via crontab?
dietpi-backup only opens the dialog,
is there a command where the backup starts directly to default location?
that would be great
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: dietpi-backup via crontab?

Post by k-plan »

Hi,
scr44tch wrote:is there a command where the backup starts directly to default location?
yes

Code: Select all

:~# /DietPi/dietpi/dietpi-backup  1
But there are some more option. please have a look:

https://github.com/Fourdee/DietPi/blob/ ... backup#L15

Code: Select all

# Usage:
	# - /DietPi/dietpi/dietpi-backup -1 = Restore
	# - /DietPi/dietpi/dietpi-backup    = Menu
	# - /DietPi/dietpi/dietpi-backup  1 = Backup
	#
	# $2 = optional directory location to use with backup/restore input:
	# - /DietPi/dietpi/dietpi-backup -1 /mnt/MyDirectoryTarget = Restore
	# - /DietPi/dietpi/dietpi-backup  1 /mnt/MyDirectoryTarget = Backup
and custom Include and Exclude patterns:

http://dietpi.com/phpbb/viewtopic.php?f ... rt=30#p255

cu
k-plan
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.
scr44tch

Re: dietpi-backup via crontab?

Post by scr44tch »

exactly what i was looking for

thx
Post Reply