diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2016-04-26 14:47:18 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2016-04-26 14:47:18 +0300 |
commit | bb9d14756efdadd5e1ec99d75901bd81e37de543 (patch) | |
tree | c6354cf536f0d09570a29e1a413cfb28459643f0 | |
parent | remove .curlrc (diff) | |
download | linux-home-bb9d14756efdadd5e1ec99d75901bd81e37de543.tar.gz linux-home-bb9d14756efdadd5e1ec99d75901bd81e37de543.zip |
backup_repo: bugfix
Diffstat (limited to '')
-rw-r--r-- | .bashrc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -243,7 +243,7 @@ sanitize_unix_files() { backup_repo() { for repo_path; do - local zipname="$( basename "$repo_path" )_$( date -u +'%Y%m%dT%H%M%S' ).zip" + local zipname="$( basename "$( realpath "$repo_path" )" )_$( date -u +'%Y%m%dT%H%M%S' ).zip" git archive \ --format=zip -9 \ --output="/cygdrive/c/Users/$( whoami )/Dropbox/backups/$zipname" \ @@ -254,7 +254,7 @@ backup_repo() { backup_repo_nwx() { for repo_path; do - local zipname="$( basename "$repo_path" )_$( date -u +'%Y%m%dT%H%M%S' ).zip" + local zipname="$( basename "$( realpath "$repo_path" )" )_$( date -u +'%Y%m%dT%H%M%S' ).zip" git archive \ --format=zip -9 \ --output="//spbfs02/P/Personal/Egor Tensin/$zipname" \ |