[TriLUG] bash script help
MvER - TrLUG via TriLUG
trilug at trilug.org
Sat Mar 26 21:25:46 EDT 2016
I expect this is a simple syntax problem, but it eludes my efforts:
Partial log of script
SETTING THE VARS:------------------------
dt [date] is: 2016-03-26:2113 [want to append this to file
name eventually]
kpdir is: Desktop/ [actually /home/mver/Desktop is the
full path. I am running in /home/mver as the owner and user]
keepass source is: mr-master.kbdx
kpdest is: Dropbox/Apps/Keepass2Android/
kpdestarch is: Dropbox/Apps/Keepass2Android/mr-master.kbdx
Beginning backup of files @ 2016-03-26:2113
RUNNING THE COMMAND ----------------- [i want to backup mr-master.kbdx
into Dropbox]
rsync -vnuxit ${kpdir}${kpsrc} $kpdestarch
WHICH EXECUTES AS: -----------------
rsync -vnuxit Desktop/mr-master.kbdx
Dropbox/Apps/Keepass2Android/mr-master.kbdx
ERROR RESULT:----------------------
rsync: link_stat "/home/mver/Desktop/mr-master.kbdx" failed: No such
file or directory (2)
No point in running a real backup (without -n) until the file naming is
corrected.
Thanks for any help.
Mike R.
More information about the TriLUG
mailing list