added -r and -d command for directory backup only