backup directory to path