title: Backup script not transferring user files?
body: <p>I have a script I created that copies and zips files from a directory and moves the zipped file into a user inputted directory. My goal was to use it to backup user profiles to a network drive. The problem I am running into is permissions. I was able to get past the NTUSER.dat files by including <code>asadmin</code> but the script will not move over documents, desktop etc. I thought elevating the script would do it but no cigar. Here is the portion I'm referring to:</p>
  <pre><code>    elif object_to_backup_path.is_dir():
      for file in object_to_backup_path.glob('**/*'):
          if file.is_file():
              zip_file.write(
                  file.absolute(),
                  arcname=str(file.relative_to(object_to_backup_path)),
                  compress_type=zipfile.ZIP_DEFLATED
              )
  </code></pre>
  <p>My question is, what am I missing in order to zip the entire user folder? Currently the result is just appdata and NTUSER.dat. LMK if posting the full script will help. TIA</p>