pastebin - collaborative debugging tool
script.kpaste.net RSS

Difference between
modified post 70f1324 by Anonymous on Mon 2nd Mar 2015 23:19
original post 430a5 by Anonymous on Mon 2nd Mar 2015 23:14
Download diff
Show old version | new version | both versions

    
11
#!/bin/bash
33
# Set backup location here
44
bak=$1
55
timestamp=$(date +%F_%T%z)
77
# Make a timestamped directory there.
88
mkdir -v "$bak"homeprofile_backup_"$timestamp"
10+
# Make what has been bade by mkdir and put that into a variable.
1011
"$bak"homeprofile_backup_"$timestamp"=timedir
13+
# For this, blaah.txt has to exist in your directory, that one is supposed to get copied over.
1214
rsync -avp --partial --progress --human-readable blaah.txt "$timedir"

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.

Syntax highlighting:

To highlight particular lines, prefix each line with {%HIGHLIGHT}




All content is user-submitted.
The administrators of this site (kpaste.net) are not responsible for their content.
Abuse reports should be emailed to us at