11 lines
272 B
Bash
Executable File
11 lines
272 B
Bash
Executable File
#!/bin/sh
|
|
|
|
hostname=$(hostname)
|
|
year=$(date +%Y)
|
|
month=$(date +%m)
|
|
day=$(date +%d)
|
|
timestamp="$year-$month-$day $(date +"%H:%M")"
|
|
|
|
set -x
|
|
bupstash put --print-file-actions --print-stats hostname="$hostname" timestamp="$timestamp" year="$year" month="$month" day="$day" $@
|