backups: change data/time delimiter in filename according to ISO 8601

This commit is contained in:
Marek Marczykowski-Górecki 2014-01-15 04:33:18 +01:00
parent 2b80dfef17
commit 66ef7696ac

View File

@ -3,7 +3,7 @@ read args
echo Arguments: $args
if [ -d "$args" ] ; then
echo "Performing backup to directory $args"
TARGET="$args/qubes-backup-`date +'%Y-%d-%m-%H%M%S'`"
TARGET="$args/qubes-backup-`date +'%Y-%d-%mT%H%M%S'`"
echo "Copying STDIN data to $TARGET"
cat > $TARGET
else