Forrest logo
back to the FTP_PASSWORD=${webdav_login_password} tool

duplicity:tldr:8ada3

duplicity: Delete versions older than 1 year from a backup stored on a WebDAV share.
$ FTP_PASSWORD=${webdav_login_password} duplicity remove-older-than ${1Y} --force ${webdav[s]:--user@hostname[:port]-some_dir}
try on your machine

This command sets the FTP_PASSWORD environment variable to the value of the webdav_login_password variable. It then uses the duplicity command to remove all backups (files or directories) that are older than the specified time duration, which is the value of the ${1Y} variable. The --force flag is used to forcefully remove the backups.

The command also specifies the webdav[s] URL as the location of the backups. If the webdav[s] variable is defined, it uses the specified URL for the backup location. Otherwise, it uses the default value, which is --user@hostname[:port]-some_dir.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the FTP_PASSWORD=${webdav_login_password} tool