Advertisement
Guest User

Untitled

a guest
Oct 18th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/bin/sh
  2. mv /mnt/pool/backup/root_latest.img.gz /mnt/pool/backup/root_$(date +%s).img.gz.old
  3. dd if=/dev/da8 conv=sync,noerror bs=64k | gzip -c > /mnt/pool/backup/root_latest.img.gz
  4. find /mnt/pool/backup/*.old -mtime +30 -exec rm {} \;
  5.  
  6. # Please improve it
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement