File transfer: scp from local to windows share
Hi there,
I'm running Ubuntu 10.04 LTS, fresh install, and have been searching far and wide for the answer to this. I think it is probably either something simple, or i'm doing something fundamentally wrong... 1) I have a script which puts all my files into a tar.gz file in a local directory. 2) I have a 'Windows share' mounted using a tool found in 'Places>Connect to server' This mounts the server to: Quote:
Quote:
....Start of problem: 4)I wrote a bash script to allow this to run as a cron job: Quote:
Quote:
Quote:
Quote:
Any help would be much appreciated! |
Greetingz!
Well, for starters, you should probably make a few changes to your script; Code:
#!/bin/bash |
Hi xeleema, thanks for your reply.
I tried putting the code you suggested into my bash script after the part i try to 'scp', and got this back: Quote:
|
May I ask why you use scp (a tool for copying over the network using SSH) to copy to a local mounted share? Try it with cp instead.
|
q) if the windows share is mounted locally (via samba); then you can just use "cp" instead.
cp <path_to_file> <windows share mounted directory> TobiSGD beat me to it. |
Argh, I forgot you have a space in the filename, so ${target} needs to be wrapped in double-qoutes.
Just to be safe, I've wrapped both the "to" and "from" for scp in double-quotes. Code:
#!/bin/bash |
Thank you for your help, much appreciated! I think the double quotes around the
Quote:
|
All times are GMT -5. The time now is 12:11 AM. |