add function for backup directory