creese Posted March 10, 2010 Posted March 10, 2010 I hope this is in the right place. On a Win2008 server I have created a script that archives to a.7z. This works fine if I run the script manually creating d:\program files\7-zip\a.7z. If I run via scheduler 7zip creates a.7z in serval different locations, meaning I cannot backup up several schools into their own vaults not knowing where the file will be created. Any one know how to set the folder it will create the archive in?
AngryTechnician Posted March 10, 2010 Posted March 10, 2010 You should just have to use a full pathname when specifying the output file. If you post the line where you call 7-Zip in your script, I can show you how to modify it.
Ric_ Posted March 11, 2010 Posted March 11, 2010 Without seeing the script it'shard to help... at a guess it's probably just a stray switch.
creese Posted March 11, 2010 Author Posted March 11, 2010 Thanks for the replies. I'm out of the office until later this afternoon when I will post the script.
creese Posted March 11, 2010 Author Posted March 11, 2010 The line is similar to this: 7za.exe a a.7z c:\data\simsdata I have 3 areas of sims zipping into the same archive.
AngryTechnician Posted March 11, 2010 Posted March 11, 2010 If you wanted this to always go into the C:\Zipped folder, you would specify it like so: 7z.exe a [b]C:\Zipped\[/b]a.7z c:\data\simsdata Modify C:\Zipped as necessary.
6Foot2 Posted March 11, 2010 Posted March 11, 2010 If you wanted this to always go into the C:\Zipped folder, you would specify it like so: 7z.exe a [b]C:\Zipped\[/b]a.7z c:\data\simsdata Modify C:\Zipped as necessary. That's great. However I have a member of staff who would like to backup Sims each day. Is there a way of including a variable which will insert the date into the backup archive automatically? This way I will not have to manage the backups for him. All the 7Zip file can be backed up to the external HDD he has at the end of the day and everyone is happy [including the auditors due in soon]
creese Posted March 11, 2010 Author Posted March 11, 2010 If you wanted this to always go into the C:\Zipped folder, you would specify it like so: 7z.exe a [b]C:\Zipped\[/b]a.7z c:\data\simsdata Modify C:\Zipped as necessary. Thank. I'll use that anyway but we may have found the problem is with Server 2008's tasks and have now added the location the task should run from. This at first glance is working.
creese Posted March 11, 2010 Author Posted March 11, 2010 That's great. However I have a member of staff who would like to backup Sims each day. Is there a way of including a variable which will insert the date into the backup archive automatically? This way I will not have to manage the backups for him. All the 7Zip file can be backed up to the external HDD he has at the end of the day and everyone is happy [including the auditors due in soon] Our script renames the archives and deletes the oldest so we have a.7z - h.7z with a.7z, being the newest.
creese Posted March 12, 2010 Author Posted March 12, 2010 Update: Everything working now. It came down to setting the script to run from D:\ in the Scheduled Tasks, rather than leave it blank.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now