Topic "continue copying files in script after error"

Author Message
vitty

Guest


i have a problem. i need backup files on servers to major server and then backup on tape. i write this script:

Code:

option batch on
option confirm off
open user@IP
option transfer binary
get /home c:\zaloha\IP\DATE
close
exit


I need continue copying files when is error with any file.
eroor log:

Code:

c:\Internet\SSH\ZALOHA>zaloha
batch        on
confirm      off
Inicializace...
Hledn hostitele...
Spojovn s hostitelem...
Autentikace...
Using username "user".
Autentikovno.
Přprava...
Čten vzdlenho adresře...
Připraveno.
Aktivn spojen: [1] user@IP
transfer     binary
home                      |          0 kB |    0,0 kB/s | binary |   0%
.
.
.
debian                    |          0 kB |  651,0 kB/s | binary |   0%
Koprovn souborů ze vzdlenho adresře selhalo.
Obecn selhn (server by měl poskytnout popis přčiny chyby).
Kd chyby: 4
Chybov hlen zaslan serverem: Failure
Kd poadavku: 5
Spojen 'user@IP' uzavřeno.
dn otevřen spojen.


or

Code:

.
.
.
javakey.1.gz              |          0 kB |  361,0 kB/s | binary |   0%
Nepodařilo se otevřt vzdlen soubor '/etc/alternatives/javakey.1.gz'.
Soubor nebo adresř neexistuje.
Kd chyby: 2
Chybov hlen zaslan serverem: No such file
Kd poadavku: 3
Pře(r)uit, (O)pakovat, (P)řeskočit: Přeruit
Spojen 'user@IP' uzavřeno.
dn otevřen spojen.


thanx for answer and sorry for my english Twisted Evil vitty

Pripojuji jeste dotaz v cestine pro snadnejsi pochopeni meho problemu. Kopiruji data ze serveru na hlavni server (z Linuxu na WinXP). Pri prubehu kopirovani se mi prikaz get ukonci s vyse uvedenyma chybama. Potreboval bych, aby skript tyto chyby preskocil a pokracoval dal v kopirovani. Tento skript mi pobezi v noci a sam. Po ukonceni se spusti zalohovani na pasku.
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
There's currently no way how to ignore the errors and continue. You need to avoid copying files that cannot be copied.
_________________
Martin Prikryl
Guest




prikryl wrote:
There's currently no way how to ignore the errors and continue. You need to avoid copying files that cannot be copied.


it's impossible check files before copying. i need daily back-up ahead given folders on few servers and i don't know what is in this folders. when some file is just now in use or in linux one folders reffering on another folder, i don't know, how this file or folder before copying detect and eliminate from copying.

is any idea?

thanx for answer, vitty
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24994
Location: Prague, Czechia
Anonymous wrote:
it's impossible check files before copying. i need daily back-up ahead given folders on few servers and i don't know what is in this folders. when some file is just now in use or in linux one folders reffering on another folder, i don't know, how this file or folder before copying detect and eliminate from copying.

Have you tried other command-line SFTP client, like PSFTP?
_________________
Martin Prikryl
Guest




psftp copy only files. i find program tunnelier by bitvise and then work without errors.
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License