Force sync command to continue after error
Posted: 17 Jun 2024 15:16
Hi,
I use a script to sync (backup) my files to a network drive.
My backup can last for more than 1 hour and I usually trigger it when I am not working on my PC as XYplorer cannot be used during this time.
It has been working well for over 2 years but recently I had some failed files during the sync that requires a user input to continue (when I'm away).
Last failed sync were because the error "Ecrasement sans danger : l'échange de nom a échoué. Accès refusé" (~ "safe overwrite: name swapping failed. Access denied").
I cannot find any option in the sync command to force the sync to continue. Any workaround ?
Thanks.
The sync command in my script
I use a script to sync (backup) my files to a network drive.
My backup can last for more than 1 hour and I usually trigger it when I am not working on my PC as XYplorer cannot be used during this time.
It has been working well for over 2 years but recently I had some failed files during the sync that requires a user input to continue (when I'm away).
Last failed sync were because the error "Ecrasement sans danger : l'échange de nom a échoué. Accès refusé" (~ "safe overwrite: name swapping failed. Access denied").
I cannot find any option in the sync command to force the sync to continue. Any workaround ?
Thanks.
The sync command in my script
Code: Select all
sync $src, $dst, 1, 0, 1, , $log ;