sorinciupitu
Dabbler
- Joined
 - Jan 17, 2021
 
- Messages
 - 16
 
Hello,
I'm new in TrueNAS world and I want to ask you how I can backup my config daily, because I run TrueNAS from usb flash drive and I know the risk. After I search on this forum, I find a code line that I run with Cron Jobs. My name pool where I save the backup file is "work" and folder in that pool is "work". This script it save a file, but I'm not sure if that file is good for restore (like I said my version is TrueNAS-12.0-U1). The line is:
Thank you!
	
		
			
		
		
	
			
			I'm new in TrueNAS world and I want to ask you how I can backup my config daily, because I run TrueNAS from usb flash drive and I know the risk. After I search on this forum, I find a code line that I run with Cron Jobs. My name pool where I save the backup file is "work" and folder in that pool is "work". This script it save a file, but I'm not sure if that file is good for restore (like I said my version is TrueNAS-12.0-U1). The line is:
Code:
tar -cvf /mnt/work/work/"$(date +%Y_%m_%d)_$HOST_$(cat /etc/version | cut -d' ' -f1).tar.gz" -C /data freenas-v1.db pwenc_secret
Thank you!