- #!/bin/bash
- # Set backup location here
- bak=$1
- timestamp=$(date +%F_%T%z)
- # Make a timestamped directory there.
- mkdir -v "$bak"homeprofile_backup_"$timestamp"
- # Make what has been bade by mkdir and put that into a variable.
- timedir="$bak"homeprofile_backup_"$timestamp"/
- # For this, blaah.txt has to exist in your directory, that one is supposed to get copied over.
- rsync -avp --partial --progress --human-readable --relative blaah.txt "$timedir"
Untitled
Posted by Anonymous on Tue 3rd Mar 2015 01:13
raw | new post
Submit a correction or amendment below (click here to make a fresh posting)
After submitting an amendment, you'll be able to view the differences between the old and new posts easily.