Hi,
I would like to create a daily incremental backup of a directory with all of the files within and add a timestamp (year-month-day) to the tar.gz file.
I have the following, but it doesn't backup the inside files of the directory.
#!/bin/bash
tar -czf /home/username/Desktop/test`date+%Y%m%d`.tar.gz /home/username/Desktop/directory
Does this replaces the last tar.gz with the new one each day? Also, if errors presented I would like those to go to a .out file in /tmp
Thanks in advance for your handy help!
Regards,