Quantcast
Channel: PowerShell
Viewing all articles
Browse latest Browse all 15370

Powershell Script for Backups

$
0
0

What I need:

1. I need a way to have the script look for a drive with a file like Backupdrive.config on the root. If one is not found echo "Backup Drive Not Found" For about 10 sec then end.    

2. Once it is found I need it to first look at the drive letter and see if it is set to X if it is then go to next part of the script if not then change the drive letter to X then continue.

3. I have the rest done at this point which is to run a Free File Sync Script to create a backup then delete files created more then 15 days ago in the versioning folder on the drive.  

Also if anyone knows of a way to trigger this script on the mounting of any drive let me know.  

Thanks !


Viewing all articles
Browse latest Browse all 15370

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>