我正在通过 webdav 发送备份,它们每月轮换一次,所以我只想让我的上传覆盖 webdav 服务器上上个月的文件:
cadaver https://files.server.com/webdav/ <<EOF
cd /backups/$APPNAME
delete $DBNAME$TODAYSDATE-db.aes
delete $APPNAME$LOGDATE-log.aes
put $BACKUPPATH/$DBNAME$TODAYSDATE-db.aes
put $BACKUPPATH/$APPNAME$LOGDATE-log.aes
quit
EOF
我收到删除错误:
Deleting `repair21-log.aes': failed:
417 Expectation Failed
而对于看跌期权(它不会覆盖):
Progress: [=============================>] 100.0% of 232912208 bytes failed:
417 Expectation Failed