16 lines
		
	
	
		
			415 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
			
		
		
	
	
			16 lines
		
	
	
		
			415 B
		
	
	
	
		
			Django/Jinja
		
	
	
	
	
	
###### Unlock the restic database in case it's locked
 | 
						|
 | 
						|
$RESTIC --password-file=$PWD_FILE unlock
 | 
						|
 | 
						|
###### Send backups
 | 
						|
 | 
						|
date
 | 
						|
echo "Sending the backup to the destination..."
 | 
						|
 | 
						|
cat /backup-dirs | xargs -d '\n' $RESTIC --password-file=$PWD_FILE backup 
 | 
						|
 | 
						|
date
 | 
						|
echo "Pruning the backup on the destination..."
 | 
						|
 | 
						|
$RESTIC --password-file=$PWD_FILE forget --prune --keep-daily 3 --keep-weekly 2 --keep-monthly 1 --keep-yearly 1
 |