angry-salad-blog
angry-salad-blog
What if...
4 posts
Ideas and thoughts
Don't wanna be here? Send us removal request.
angry-salad-blog · 8 years ago
Text
Back it up
Quick backup script with Windows’ built-in tools
The point here is to make a copy of your data (the important stuff), then move that copy off of your computer. There are programs out there that polish up this process and make it easy, but some are pricey. I like “Syncovery”, personally because it offers a dizzying array of options, most of which are never used. Windows and macOS both come with utilities that when scripted properly, will make for a nice and simple backup regimen. 
On the Windows side, there’s xcopy and robocopy. They both do the same thing (copy files), with robocopy being more versatile for copying to a network location, or between network locations. If you have Windows 7 or later, both are already installed on your system. 
Enter the following into a text editor (notepad.exe, notepad++.exe).
xcopy c:\users\lebowski\documents\* F:\backup\documents\%date:~0,3%\* /Y /Q /S
The above command will copy the Dude’s documents to F\backup\documents\<Mon|Tue|Wed|Thu|Fri|Sat|Sun>. Hopefully, F is an external USB drive of some sort or a mapped drive on a server.
/Y = “Are you sure you want to overwrite an existing file?” Yes
/Q = Copies quietly, without echoing progress in the terminal
/S = Copies all directories and sub directories, unless they are empty.
This might give a few redundant copies of your data, one for each day of the week. If target storage cannot handle that, or you’re just into data-deduplication, then replace “%date:~0,3%” with a static folder, or omit that level entirely.
Robocopy is a bit more involved, but it is worth taking the extra time to get familiar. 
robocopy c:\users\lebowski\documents f:\backup\Documents /NDL /NFL /ZB /COPYALL /NP /r:1 /w:1 /LOG+:C:\RobocopyDocsToBackup.log
Lebowski’s docs are going to the same place, just in style this time.
/NDL = Does not log the names of the directories it copies. 
/NFL = File names are not logged either...
/ZB = Copies files in restart mode, if that doesn’t work, it uses backup mode instead.
/COPYALL = Self-explanatory
/NP = “No problem”, not actually it means that the progress of the operation will not be displayed as in “No progress.”
/r:1 = 1 is the number of times a failed copy will be reattempted.
/w:1 = One second will elapse between the failed re-copy attempt(s). 
/LOG = A log file is written to the root of C: in this case (probably not the best place to drop a log file).
Once you are satisfied that the commands are doing what they are supposed to be doing, save two copies of the file with either a BAT or CMD file extension, “backup.cmd” for example. Place one copy with your other work (for safe keeping), and the other outside of your user profile (to run in a scheduled task). 
Open an administrative command prompt and enter the following.
SchTasks /Create /SC DAILY /TN “Daily_Backup” /TR “C:\Windows\System32\backup.cmd” /ST 00:00 
/CREATE = ...
/SC DAILY = Schedule? Daily from <MINUTE, HOURLY, DAILY, WEEKLY, MONTHLY, ONCE, ONSTART, ONLOGON, ONIDLE>
/TN = Task Name “Daily_Backup” (The command wouldn’t run for me with a space in the name)
/TR = “Task to run”, in this case our backup.cmd
/ST = “Scheduled time”, zero hour, midnight
The task will run under the user account which created the task, so make sure that account had read access to the source directories and write access to the destination.
Cheers and thanks to the following online resources!
Microsoft Schtasks page
Microsoft Technet “Robocopy and a few examples” page
This dude’s page
2 notes · View notes
angry-salad-blog · 8 years ago
Text
What if...
...I came across a favorite celebrity IRL? What would I do?
Nothing. Nothing at all for two reasons. First, I can almost guarantee they do not want to be bothered. They’re out there, doing their thing, and the last thing they need is someone coming up and bugging them for an autograph or a selfie. I hate it when it happens to me (it never actually happens, but it would bother me). 
Second, I would really hate to catch a celeb on a bad day and have them go off on me. Usually, I don’t care what most people think, but if I don’t want to be annoying to anyone. Especially, someone, I like and admire. We all want to avoid photos like these...
1 note · View note
angry-salad-blog · 8 years ago
Text
About.me
Hi,
I like aviation, history, technology, and science.
What’s header wallpaper? Venus transiting the sun (in front of the Earth).
Why the skull avatar? It is something we all have.
0 notes
angry-salad-blog · 8 years ago
Text
Want to stop Windows 10 from calling home?
add these entries to your PC’s hosts file.
# Windows 10 reporting domains. 0.0.0.0 a-msedge.net 0.0.0.0 a.ads2.msads.net 0.0.0.0 adnexus.net 0.0.0.0 aidps.atdmt.com 0.0.0.0 az361816.vo.msecnd.net 0.0.0.0 az512334.vo.msecnd.net 0.0.0.0 b.ads1.msn.com 0.0.0.0 b.ads2.msads.net 0.0.0.0 c.atdmt.com 0.0.0.0 c.msn.com 0.0.0.0 cdn.atdmt.com 0.0.0.0 cds26.ams9.msecn.net 0.0.0.0 db3aqu.atdmt.com 0.0.0.0 ec.atdmt.com 0.0.0.0 feedback.microsoft-hohm.com 0.0.0.0 flex.msn.com 0.0.0.0 g.msn.com 0.0.0.0 h1.msn.com 0.0.0.0 lb1.www.ms.akadns.net 0.0.0.0 live.rads.msn.com 0.0.0.0 m.adnxs.com 0.0.0.0 msedge.net 0.0.0.0 msnbot-65-55-108-23.search.msn.com 0.0.0.0 msntest.serving-sys.com 0.0.0.0 preview.msn.com 0.0.0.0 reports.wes.df.telemetry.microsoft.com 0.0.0.0 sO.2mdn.net 0.0.0.0 schemas.microsoft.akadns.net 0.0.0.0 secure.flashtalking.com 0.0.0.0 settings-win.data.microsoft.com 0.0.0.0 statsfe2.ws.microsoft.com 0.0.0.0 telemetry.appex.bing.net:443 0.0.0.0 wes.df.telemetry.microsoft.com #</Windows10>
KEEP IN MIND that this MIGHT BREAK Windows Update, Windows Defender, the Insider Preview program and features/services like Cortana. TEST THIS OUT on another copy of Windows 10 FIRST, before deploying to computers that are important. 
1 note · View note