aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2016-04-26 14:47:18 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2016-04-26 14:47:18 +0300
commitbb9d14756efdadd5e1ec99d75901bd81e37de543 (patch)
treec6354cf536f0d09570a29e1a413cfb28459643f0
parentremove .curlrc (diff)
downloadlinux-home-bb9d14756efdadd5e1ec99d75901bd81e37de543.tar.gz
linux-home-bb9d14756efdadd5e1ec99d75901bd81e37de543.zip
backup_repo: bugfix
Diffstat (limited to '')
-rw-r--r--.bashrc4
1 files changed, 2 insertions, 2 deletions
diff --git a/.bashrc b/.bashrc
index 359a0bf..0e2cea8 100644
--- a/.bashrc
+++ b/.bashrc
@@ -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" \