set swap and backupdir