How to rsync over ssh when directory names have spaces

 50 20 21 7 * /bin/sh /mnt/sdf1/backup/backupnew.sh


#!/bin/bash


rsync --protect-args -avzhPe 'ssh -p 1666' "root@49.248.142.90:/home/PNGSCloud 2012 to 31032022" /mnt/sdf1/public_html/  &> /mnt/sdf1/backup/logsnew.log



 --protect-args 


and "" from root 

Comments

Popular posts from this blog

how to install internet download manger in linux

cpanel exam CPSP Answers

How to install zimbra collaboration suite 8.8.11 on CentOS 7