set directory and backupdir