Commit 0e96ae68 authored by Natanael Copa's avatar Natanael Copa

force UTC for backups

parent 5fc20afe
......@@ -339,7 +339,7 @@ cmd_commit() {
else
lines=$(ls -1 "$mnt"/*.apkovl.tar.gz* 2>/dev/null)
if [ "$lines" = "$outfile" ]; then
local d=$( date -r "$outfile" "+%Y%m%d%H%m%S" )
local d=$( date -u -r "$outfile" "+%Y%m%d%H%m%S" )
local backup=$(echo "$outfile" | sed "s/\.apkovl\.tar\.gz/.$d.tar.gz/")
vecho "Creating backup $backup"
[ -z "$DRYRUN" ] && mv "$outfile" "$backup"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment