Return to Snippet

Revision: 69414
at June 16, 2015 11:20 by brm


Initial Code
#!/bin/sh

YESTERDAY='date +%D -date=-1day'
( cd /dir/ && tar --create --file=- --newer=$YESTERDAY . ) | ( cd /dest_dir/ && tar xvpf - )

Initial URL


Initial Description
Script using tar to backup new file created 1 day before

Initial Title
Tar backup file 1 day before

Initial Tags
backup

Initial Language
Bash