Hi guys ,
I m writing a script in linux which will backup a particular folder and its content to a different location.
this script needs to be run every weekend.
But my problem is how would i apply logic such that the previous backup folder is only deleted if and only if the current backup is successful.
my code
I m writing a script in linux which will backup a particular folder and its content to a different location.
this script needs to be run every weekend.
But my problem is how would i apply logic such that the previous backup folder is only deleted if and only if the current backup is successful.
my code
PHP:cp /OVS/running_pool/$VM_Guest/*.* /mnt/ntserver/$VM_Guest/ if [ "$?" -ne "0" ]; then echo "Problem in copying the data" fi