|
The SageTV Community Here's the place to discuss what's worth recording, HTPC deals at retail stores, events happening outside of your home theater, and pretty much anything else you'd like. (No For-Sale posts) |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||||
|
||||
Automated Windows copy Scheduled task?
Boy I feel like a dumbass after using PCs since 1983, but I can't figure out how to copy an entire directory via the command prompt in WHS. (I'm trying to create a scheduled task to do this.)
I tried Quote:
I tried changing the destination to a local drive just to get the formatting right, and that isn't it either. There's other stuff i've tried, but now i'm randomly doing stuff Google shows people doing what i'm doing, so I have no idea what i'm doing wrong. |
#2
|
||||
|
||||
Quote:
I believe the copy command will not like UNC paths so you will need to map a drive. The *.* /s tells it all the files in the SageTV directory and /s twlls it to also copy subdirectories and files within the SageTV folder. You may want to look at robocopy for a more sophisicated commandline tool. Also robogeek had already created a SageTV Backup script for WHS which is here. Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#3
|
||||
|
||||
I think you're looking for 'xcopy /S' or 'xcopy /E'
|
#4
|
||||
|
||||
Use xcopy for copying whole directories (including subdirectories).
__________________
-- Greg |
#5
|
||||
|
||||
ah, the /s is what i was missing, it wasn't finding any files in ..\SageTV so it died. Looking into robogeeks backup automated routine now, thanks for that link.
|
#6
|
|||
|
|||
Not sure what you are trying to do exactly but I suspect you are backing stuff up to a separate locations. I use SyncToy 2.1 to copy backups of select folders to a drive that is not in the pool. It can easily be scheduled to run at any interval you like. SyncToy is from Microsoft and is free. The benefit of SyncToy is that it will only copy the changes.
Don't forget to backup the Sage wiz.bin as well. I have a *.bat file scheduled to run every night that will reset SageTV and backup the wiz.bin file. It uses utility called devcon to restart the SageTV service as well as resetting the HD-PVR devices. (attached if interested.) " |
#7
|
||||
|
||||
Does one really need to stop the SageTV service before doing the copy?
I just set up a simple xcopy of \programfiles\sagetv to a different machine at 3am every sat morning. It runs pretty fast, so I don't mind a non-incremental copy. I tried running robogeek's script, but it was throwing errors. Plus it's way more than I need (I think), so I just stuck with that simple xcopy command. |
#8
|
|||
|
|||
The restart of the SageTV service is really about stability and the HD-PVRs. You shouldn't really need to stop it for a decent backup.
My WHS can go for months without a reboot. I started the reset when I seup the automatic backups in hopes to improve stability. (was not a significant problem before) I have not missed a recording since I started the SageTV and HD-PVR daily reset. |
#9
|
||||
|
||||
Quote:
Again, this might be overkill for your needs, but I figured I'd mention it.
__________________
Server: XP, SuperMicro X9SAE-V, i7 3770T, Thermalright Archon SB-E, 32GB Corsair DDR3, 2 x IBM M1015, Corsair HX1000W PSU, CoolerMaster CM Storm Stryker case Storage: 2 x Addonics 5-in-3 3.5" bays, 1 x Addonics 4-in-1 2.5" bay, 24TB Client: Windows 7 64-bit, Foxconn G9657MA-8EKRS2H, Core2Duo E6600, Zalman CNPS7500, 2GB Corsair, 320GB, HIS ATI 4650, Antec Fusion Tuners: 2 x HD-PVR (HTTP tuning), 2 x HDHR, USB-UIRT Software: SageTV 7 |
#10
|
|||
|
|||
What is a good way restart HD-100 extenders after resetting the SageTV service? Once they loose the connection to the Sage server, they must be restarted to reconnect.
I think there are some scripts floating around, but I don't see them now (haven't looked very hard however).
__________________
i7-6700 server with about 10tb of space currently SageTV v9 (64bit) Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable) OpenDCT HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party) Amazon Firestick 4k and Nvidia Shield using the MiniClient Using CQC to control it all |
#11
|
|||
|
|||
Quote:
__________________
Home Network: https://karylstein.com/technology.html |
#12
|
|||
|
|||
I found the script program. Shadeblue.com created a utility call SageExtCtrl that should work nicely. I had looked at it before, but never tried it out. Now that I set my parents up with a Sage system, I really need to get their extenders to restart automatically should the computer be rebooted for some reason. I'm tired of getting those "The Sage isn't working" phone calls
__________________
i7-6700 server with about 10tb of space currently SageTV v9 (64bit) Ceton InfiniTV ETH 6 cable card tuner (Spectrum cable) OpenDCT HD-300 HD Extenders (hooked to my whole-house A/V system for synched playback on multiple TVs - great during a Superbowl party) Amazon Firestick 4k and Nvidia Shield using the MiniClient Using CQC to control it all |
#13
|
||||
|
||||
Hey guys
sorry to resurrect an old thread but I'm having issues using SyncToy 2.1 to backup sagetv... For some reason ST errors when copying about 90 JARs and wiz.bin.... it says it cannot read the files at the source b/c they are used by another program. Anyone know why this is? Using xcopy also hangs at copying the files in the active-MQ/Ortus directory (I think the files are called data-control, etc) Any ideas? Im running Win7, UAC switched off. Thanks! |
#14
|
||||
|
||||
Quote:
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. |
#15
|
||||
|
||||
Quote:
cheers |
#16
|
||||
|
||||
Usually open files cannot just be copied. Now a true backup program may be able to copy open files. And it may depend at what time you copied Sage via windows copy and what the program was doing. And did you verify that all the fies were copied over? I mean Sync Toy is telling you exactly what the error is. And if you left xcopy running long enough it would probably give you an error about the file being open.
Gerry
__________________
Big Gerr _______ Server - WHS 2011: Sage 7.1.9 - 1 x HD Prime and 2 x HDHomeRun - Intel Atom D525 1.6 GHz, Acer Easystore, RAM 4 GB, 4 x 2TB hotswap drives, 1 x 2TB USB ext Clients: 2 x PC Clients, 1 x HD300, 2 x HD-200, 1 x HD-100 DEV Client: Win 7 Ultimate 64 bit - AMD 64 x2 6000+, Gigabyte GA-MA790GP-DS4H MB, RAM 4GB, HD OS:500GB, DATA:1 x 500GB, Pace RGN STB. Last edited by gplasky; 09-28-2010 at 09:15 AM. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Repair - Windows Task Manager | scat | The SageTV Community | 1 | 04-22-2009 06:30 PM |
"There are no scheduled recordings..." and Windows 7 | banshee | SageTV Software | 1 | 02-13-2009 12:43 PM |
Possible to run scheduled task without cmd window opening? | popechild | General Discussion | 3 | 06-05-2007 06:05 PM |
Scheduled Windows Restart / Reboot (Shutdown -r) and Sage doesn't restart | dealsdyker | SageTV Software | 8 | 03-09-2007 04:24 PM |
running epg of windows scheduled task... | doron_amedey | SageTV Software | 5 | 09-14-2005 03:03 PM |