[TriLUG] bash script help

Steve Holton via TriLUG trilug at trilug.org
Sun Mar 27 07:47:22 EDT 2016


I'm curious about the line:

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


When I read this, I read it to mean that the file "mr-master.kbdx" can be
found in /home/mver/mr-master.kbdx
rather than in /home/mver/Desktop/mr-master.kbdx

So when rsync says:

> rsync: link_stat "/home/mver/Desktop/mr-master.kbdx" failed: No such
> file or directory (2)


which seems completely reasonable to me.

Where does your computer /think/ mr-master.kbdx lives?   Try the command
(if available):

*   locate mr-master.kbdx*


On Sat, Mar 26, 2016 at 9:25 PM, MvER - TrLUG via TriLUG <trilug at trilug.org>
wrote:

>
> 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.
> --
> This message was sent to: sph0lt0n at gmail.com <sph0lt0n at gmail.com>
> To unsubscribe, send a blank message to trilug-leave at trilug.org from that
> address.
> TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug
> Unsubscribe or edit options on the web  :
> http://www.trilug.org/mailman/options/trilug/sph0lt0n%40gmail.com
> Welcome to TriLUG: http://trilug.org/welcome




-- 
Steve Holton
sph0lt0n at gmail.com


More information about the TriLUG mailing list