ssh [email protected] tar cvpf - /root/1 > /home/user/arc.tar.gz
需要添加
--exclude=/root/1/2
我尝试但不起作用:
ssh [email protected] tar cvpf - /root/1 > /home/user/arc.tar.gz --exclude=/root/1/2
ssh [email protected] tar cvpf - /root/1 > /home/user/arc.tar.gz
需要添加
--exclude=/root/1/2
我尝试但不起作用:
ssh [email protected] tar cvpf - /root/1 > /home/user/arc.tar.gz --exclude=/root/1/2
我想在我的电脑上备份FROM [email protected]:/home/user/mc
TO 目录/local/backup-folder
。
为什么这不起作用?
restic init --repo /local/backup-folder
restic -r /local/backup-folder backup sftp:[email protected]:/home/user/mc
sftp:[email protected]:/home/user/mc does not exist, skipping
init does not exist, skipping
Fatal: all target directories/files do not exist
使用ssh [email protected] ls /home/user/mc
有效,并且远程目录确实存在。