- martin
Post a reply
Topic review
- Capric0rn
Re: Sync Issue: Modified Files Detected but Not Copied
Hm...Yes. But how to change the script to give notice when synchronization fails on its way?
Martin
Martin
- martin
Re: Sync Issue: Modified Files Detected but Not Copied
Your synchronization failed. See the end of the log.
- Capric0rn
Re: Sync Issue: Modified Files Detected but Not Copied
Thanks for your reply. Please find the logfile from today as 7z-archive attached. It's about 18k kb as text.. Same behaviour with the -at least- two files.
Martin
Martin
- martin
Re: Sync Issue: Modified Files Detected but Not Copied
Please post complete log.
- Capric0rn
Sync Issue: Modified Files Detected but Not Copied
With a WinSCP (6.3.5) script, which I call once daily via a batch program, I want to mirror and keep the local drive
The script:
Log file excerpt:
Does anyone have any advice? Thanks, Martin
K:
in sync with a folder /media/Backup/"Backup K"/
on a Raspberry Pi 4B. Unfortunately, this only works "in principle." In detail, I observe at least two files (7z archives) that are not being mirrored again despite their content changing daily. The log file (excerpt below) shows that the modified files were detected ("included to synchronization," "modified comparing to remote file"), but they are still not copied.
The script:
option batch on
option confirm off
open sftp://user:password@192.168.x.125
lcd k:\
cd /media/Backup/"Backup K"/
synchronize remote -mirror -criteria=time -rawtransfersettings ExcludeHiddenFiles=1 -delete -filemask="|*/$RECYCLE.BIN/;*/System Volume Information/"
/log "C:\temp\winscp.log"
close
exit
Log file excerpt:
. 2024-10-12 06:11:27.754 Local file 'k:\Music\Trackstat_Backup.7z' [2024-10-11T20:10:45.396Z] [4327105] included to synchronization
. 2024-10-12 06:12:11.531 Local file 'k:\Music\Trackstat_Backup.7z' [2024-10-11T20:10:45.396Z] [4327105] is modified comparing to remote file '/media/Backup/Backup K/Music/Trackstat_Backup.7z' [2024-10-08T20:10:49.000Z] [4314786]
. 2024-10-12 06:11:27.962 Trackstat_Backup.7z;-;4314786;2024-10-08T20:10:49.000Z;4;"pi" [1000];"pi" [1000];rwxrwxrwx;1
. 2024-10-12 06:11:27.741 Local file 'k:\Music\MusicIP_m3lib.7z' [2024-10-11T20:10:31.837Z] [52837819] included to synchronization
. 2024-10-12 06:12:00.149 Local file 'k:\Music\MusicIP_m3lib.7z' [2024-10-11T20:10:31.837Z] [52837819] is modified comparing to remote file '/media/Backup/Backup K/Music/MusicIP_m3lib.7z' [2024-10-08T20:10:34.000Z] [52839272]
. 2024-10-12 06:11:27.962 MusicIP_m3lib.7z;-;52839272;2024-10-08T20:10:34.000Z;4;"pi" [1000];"pi" [1000];rwxrwxrwx;1
Does anyone have any advice? Thanks, Martin