I have BackupPC installed which uses rsync automatically every night. As of now I can only restore files one directory deep. However, this will not work for me as I have many files and folders which need to be copied. Is there a switch for rsync that will do this?
For example, if I needed to restore a file to /var/lib/a/b/ where a and b do not currently exist, the restore would fail and I get the following error in BackupPC:
Code:
Remote[1]: rsync: mkdir "/var/lib/a/b/" failed: No such file or directory (2)
Remote[1]: rsync error: error in file IO (code 11) at main.c(576) [receiver=3.0.6]
Thanks in advance.