Hello,
Probably a simpler solution would be to use directories that DA skips natively, and link to them as needed. It would require you to ensure that proftpd does not have chroot enabled for logins.. and that it allows links.. which could be potentially a bit hazardous, fyi.
The directories that DA skips for User backups are:
usr
bin
etc
lib
lib64
tmp
var
if any of these exist in:
/home/
username/
then they're skipped. These skips are for those who jail their users (eg: /home/
username/var).. as nobody cares about system libraries and binaries in their backups.
Anyway, so you'd basically do:
Code:
cd /home/[B]username[/B]/domains/[B]domain.com[/B]
mv public_ftp ../../var
ln -s ../../var ./public_ftp
and make sure permissions are good.
Then you'd edit the /etc/proftpd.conf and remove the line
.. which is what I believe does the chroot.. based on what I've googled (you may want to double check that)
The only issue would be if proftpd checks for links above the DocumentRoot or not.. that may prevent this from working at all (I have not tested it)
John