Jump to content

Search the Community

Showing results for tags 'powershell'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General Section
    • Announcements & News
    • Introduce Yourself
    • General Discussion
    • Recreational Activities
    • Entertainment
    • Private VIP Lounge
    • Art / Screenshot / PhotoGallery / Signature
    • Suggestion
  • Gaming - Discussion
    • Enemy Territory
    • Call of Duty Series
    • Insurgency Series
    • Day Of Infamy
    • Team Fortress
    • Battlefield Series
    • Counter Strike Series
    • Other Games
    • Console & Mobile Gaming
    • Complaints
  • Help & Discussion Center
    • Tutorials
    • Q&A / Reports / Issues
    • Downloads
    • Software & PC Support
    • Hardware Hangout
    • Reviews by Members for Members
    • Language Learning & Translation
  • Join =F|A= Community
    • Applications / Join Us
  • ETPRO's Topics
  • ET Trick Jump's Topics
  • Clash of Royal's Topics
  • Clash of Clans's Topics
  • Rocket League's Topics
  • Cards Against Humanity's Topics
  • Trading's Topics
  • ET Mapping's Topics
  • Rust's Topics
  • Runescape's Topics
  • GTA's Topics
  • Among Us's Topics
  • SCUM's Topics

Calendars

  • Community Calendar
  • Gaming Events
  • ETPRO's Events
  • ET Trick Jump's Events
  • Trading's Events

Product Groups

  • Donation Packages
  • VIP Membership
  • Private Slot
  • ETPRO Events
  • Advertising

Blogs

  • Death's blog
  • Excerpts from a Diary
  • A lil piece of my life
  • Dissertation writing
  • Loki's Blog
  • ThuMpeRKA's Blog
  • RoadKILL's Blog
  • CaldasGSM's Blog
  • Sponkala's Blog
  • $kullcollector's Blog
  • Ganja.'s Blog
  • $kullcollector's Blog
  • Chameleon's Blog
  • The ramblings of an internet addict
  • Narug0's Blog
  • Pantha´s life
  • BambooBlog
  • PHANTASM RANTS
  • LeftWingVixen's Blog
  • LeKs!!'s Blog
  • Ol' Smoke's Blog
  • Crips+'s Blog
  • Pvt. Parts' Blog
  • LEKS...HUNTER OF KILLERS Blog
  • StgsL's Blog
  • WET map tutorials
  • My journey in gaming world
  • Tech Blogs
  • FireWienie's Blog
  • leks... se la rifa's Blog
  • Skylark159's Blog
  • Gaming Simplified
  • Be Act!vity's Blog
  • *
  • Be Act!vity's Blog
  • willo's Blog
  • Be Act!vity's Blog
  • Picior's Blog
  • The Scribbles of a Madman
  • crazy mafia fox's Blog
  • Chameleon's Blog
  • crazy mafia fox's Blog
  • Freedom by Exact.
  • 1984's Blog
  • ESPCatalina's Blog
  • Radoria's Blog
  • leks... se la rifa's Blog
  • Deepak Jain's Blog
  • Aphrodite01's Blog
  • Going to California for 3 week training
  • GraveDigger's Blog
  • LordTerror's Blog
  • asassin's Blog
  • 3 Week California Army Reserve training
  • Braveheart's Blog
  • Matt123Mann's Blog
  • Braveheart's Blog
  • blackknight8653's Blog
  • N!tmod Official Blog!
  • Flashing Lights' Blog
  • Nitrox*'s Blog
  • Skillz's Blog
  • BigRich's Blog
  • Skillz's Blog
  • Madgemade's Blog
  • Bowly's Foods
  • Ricardo Puente's Blog
  • kimbohunter007's Blog
  • hisoka's Blog
  • Duckie's Blog
  • FlA Sneaky Guy's Blog
  • FlA Sneaky Guy's Blog
  • severjack's Blog
  • FlA Sneaky Guy's Blog
  • Yep
  • Leichensammler's Blog
  • clxph4l4nxX3ta's Blog
  • I Can Do This Crap Too!
  • The thoughts of an insane white boy
  • Bowly's Thoughts
  • JohnWitman's Blog
  • Medic's Blog
  • AcidParadox's Blog
  • AcidParadox's Blog
  • Devil's Blog
  • Thoughts of an Assassin
  • ladosisletal's Blog
  • ladosisletal's Blog
  • Chameleon's Blog
  • Jonne Mikkola's Blog
  • Hecken's Corner
  • Blog
  • =pb=theblackkill's Blog
  • J35T3R's Blog
  • Recktilectrik's Blog
  • Soup's Blog
  • rolan001 blog
  • Stavros' Blog
  • Marine's Blog
  • The Smoke's Blog
  • The Dramatic Life of a Typical Asian
  • A day in the life of DeCareaux
  • ZIGZAG's Blog
  • Pabbatt Blue's Blog
  • ZIGZAG's Blog
  • Neuro's Blog
  • turkoxp's Blog
  • Verillaxus' Blog
  • Novice's Blog
  • lucianalorrane's Blog
  • BF2 Sandbox
  • Platform
  • zippye87's Blog
  • Success & Failure
  • zippye87's Blog
  • KonSiX-!7's Blog
  • EdbMails for exchange Recovery
  • TheProOne's Blog
  • TheProOne's Blog
  • Interview: CheepHeep
  • cereal killer's Blog
  • Diary of a Radioman
  • JohnnyColorado
  • Jasons Days
  • The Life of a Sound&Lighttechnician
  • kimbohunter007's Blog
  • Memoir of eurotrip
  • OMGITSSHMANESBLOG
  • /dev/random
  • sawwasLT's Blog
  • Mapping Sandbox
  • Shagger's Blog
  • Joining a Clan
  • Shagger's Blog
  • The world's a mean mistress at times
  • Karine's Blog
  • War2022
  • weAsels diary
  • Ways to Secure Your Finances During High Inflation
  • The !Chuck4Abuck's small world Blog
  • Clash of Clans Bases
  • Christoffer's Blog
  • Upgrade Your Rest: Keetsa Discount Codes Revealed
  • eagle7wolfensteiner77's Blog
  • 時尚鞋服
  • eagle7wolfensteiner77's Blog
  • SendBig
  • eagle7wolfensteiner77's Blog
  • ZeroGPT
  • eagle7wolfensteiner77's Blog
  • ZeroGPT
  • Fb!N!nJa's Blog
  • ZeroGPT
  • Fb!N!nJa's Blog
  • ZeroGPT
  • 1984's Blog
  • Lyon 2023 Festival of Lights
  • viper1's Blog
  • Upgrade Your Lifestyle for Less Dabbsson Discount Code Unveiled
  • viper1's Blog
  • Flatbed Tow Truck Services Your Reliable Roadside Partner
  • caca_de_puercp's Blog
  • UnrealPerson
  • czarek_pl's Blog
  • SendBig
  • MoAZeR's Blog
  • zerogpt
  • Seppe*'s Blog
  • ZeroGPT
  • chips1chips1's Blog
  • ZeroGPT
  • St0nedGh0st's Blog
  • ZeroGPT
  • Jaaa!&'s Blog
  • ZeroGPT
  • test
  • ZeroGPT
  • admin's Blog
  • Life The Universe And Everything
  • Years to Cheers: Ideas for Humorous Birthday Cards for All Ages
  • CSL's Blog
  • Papa recoil's blogy
  • Strato!'s Blog
  • o
  • ET: from zero to hero
  • JayC's Blog
  • Dupstep's Blog
  • GodLui's Blog
  • M4A1+CQB's Blog
  • Chuckun's F|A Experience
  • M4A1+CQB's Blog
  • Diary Of A Wicked
  • ETNam.OrG
  • Computers are Strange
  • angel96's Blog
  • ToXiiCxKKiNg's Blog
  • Zuthus' Blog
  • janno's Blog
  • DJ´s free Software Blog
  • Excellent !!!!
  • Scream's thoughts
  • wesker's Blog
  • Bla Bla Bla
  • mattle's Blog
  • Panzerknacker's Blog
  • OMFG_A_BUNNY's Blog
  • Leaving
  • Fargwire's Blog
  • Fargwire's Blog
  • *SwissArmy*'s Blog
  • monkeysmack's Blog
  • MiNiOn's Blog
  • MiNiOn's Blog
  • Wizbang's Blog
  • Blawg
  • yoyotach's Blog
  • Vendela's Blog
  • King Hexaan's Blog
  • Gotcha
  • DJ´s Hardware Corner
  • azn_wan92's Blog
  • =Death Hunter='s It's those little things...
  • Panzerknacker's Blog
  • Big-E!:)'s Blog
  • SanToS' Blog
  • Pinoy Blog
  • Qlimax's Blog
  • DJ's Rumor Mill
  • tyler's Blog
  • WaaSab:>
  • Colin's Movie Blog
  • Weld21dejo's Blog
  • GI-JOE's Blog
  • Crasher's Blog
  • Ramblings
  • Blade
  • Blade's Blog of Mishaps and Misfortune
  • Panzer-WT?'s Blog
  • Fierce's Toolshop
  • Caulktails and Video Games
  • Caulktails and Video Games
  • YoYoO SonnY's Blog
  • YoYoO SonnY's Blog
  • wuolfe
  • Warning.'s Blog
  • Reviews
  • The Archangel Chronicles
  • Me sports and gaming
  • Yellow Flash's Epic journey
  • H3LLB0Y's Blog
  • How to be a good player at shooting games
  • member for a few days
  • bubading_CZE's Blog
  • Ooops' Blog
  • sssssss
  • Common Sense
  • hUnI's Blog
  • Adroits LAN - Enemy Territory Overview
  • ybmad's Blog
  • mR.d0t's Blog
  • Dennis' Mapping Project and More
  • Boring Monday
  • Battle of the Wits
  • NoCell's Noob explanation blog.
  • Perceivisms
  • Jormehara
  • Alien 01
  • =Death Hunter='s Constitutional Rants
  • Ph0eniX's Blog
  • Phr33 St00f Pl0x
  • Heretic121's Blog
  • B1gM1k3's Blog
  • Rap & HipHop Place
  • Small true story being Australia
  • jaie's Blog
  • redirect tf2 test
  • =FA=GuN's Blog
  • Meh
  • INDIAN**'s Blog
  • jungleo_0's Blog
  • dontkill me's Blog
  • Patrick's Blog
  • Jake P's Blog
  • Junior Tejera's Blog
  • Brain Chow
  • jwills112's Blog
  • halaluia
  • kamikaze's Blog
  • Why not?
  • Dare2BeFair / Captain.'s Blog
  • ronaldounit0's Blog 2/25
  • Journey of a troll to a man
  • Taborham Lincoln's Blog
  • The Adventures of Taborham Lincoln
  • -Shut Down2-
  • Xernicus' Coffee Blog
  • F3@R's Blog
  • Wolfenstein classic vs wolfenstein The New Order
  • Mr.Karizmatic's Blog
  • TrackBase
  • david812's Blog
  • Detorkville's Blog
  • -Shut Down-
  • Chameleon's Blog
  • Prime's Log Entries : The Return of Apha Trion
  • Ktom's Blog

Categories

  • Fearless Assassins Software
  • Enemy Territory
    • Software
    • Maps
    • Map Scripts
    • Mods
    • Soundpacks
    • Skinpacks
    • LUA
    • Player Configs
    • Waypoints
    • Punkbuster
  • Call of Duty 4
    • Software
    • Mods
    • Maps
    • Player Configs
  • Other Games
    • Insurgency
    • Minecraft
    • Team Fortress 2
    • Counter Strike Series
  • Windows Software
  • Sounds

Categories

There are no results to display.

There are no results to display.

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Youtube


Steam


Xbox Live


PSN ID


Discord


Battlelog


Website URL


Skype


Occupation


Battle.net


Alias


Admin


Interests


SL


TB


Location


Steam ID


steamID64


T-M


S1


HC


B2

Found 1 result

  1. n30cortex

    Windows Backup Script

    Hey guys i'm working as an IT-System Administrator for a company and they needed a "Low-Budget" Backup for their Files. this is running via a scheduled task everyday at 9pm on a server If you got some question u can feel free to ask me :3 i thought i could share the script (reduced to basic) for your computers Full script is made with PSVersion 5.1.14409.1018 # Full DAILY Backupscript with 7 Days to keep #region initializing # You can use this here if you need to place the files on a NAS / Server net use A: /d /y net use A: \\path\to\backup\folder /user:username password #endregion initializing ############################################################################################################################################################## ## ## ## ## ## ## Set Variables ## Set Variables ## Set Variables ## Set Variables ## ## ## ## ## ## ############################################################################################################################################################## #region Variables #F_DATE # Here you collect the date & how many days u want to keep files. # i'm doing it 7 days back $date = Get-Date -Format "yyyy-MM-dd" $Daysback = "-7" $DatetoDelete = (Get-Date).AddDays($Daysback).ToString('yyyy-MM-dd') Write-Host -ForegroundColor Red -BackgroundColor Black "Date Defined" #F_FPath # Here we define our Paths where the files gonna be. an empty folder to clear faster, the Logdrive, the Drive u are gonna Backup, the Path to the Backup, and another logfile path # also we create the actual folder :) $nofiles = "C:\Data\NoFiles" $strLogPath = "\\path\to\log\files\" $strMassDrive = "D:" $strBackupDrive = "\\path\to\backup" $strLogDrive = "\\path\to\webserver\for\LOG" New-Item -Path $strBackupDrive\$date -ItemType directory -ErrorAction Ignore Write-Host -ForegroundColor Red -BackgroundColor Black "Backup Paths defined" #F_Logfiles # some stuff for Logs # u don't need to change that :) $strLogFile ="$strBackupDrive\Logs\"+ $date + "_backup.txt" $strLogFile1 ="$strBackupDrive\Logs\"+ $date + "_full.txt" $strDelFile ="$strBackupDrive\Logs\"+ $date + "_deleted-files.txt" $shortCopyFile = "$strBackupDrive\"+ $date + "_copied.log" $shortDelFile = "$strBackupDrive\"+ $date + "_deleted.log" $index = "$strLogDrive\index.html" Write-Host -ForegroundColor Red -BackgroundColor Black "Logfiles defined" #F_Folders # Here you place the folder which u want to backup. # Syntax => $variable = ("pathtofile"); $strDataFolder = ("C:\Users\ADMIN\Documents"); $strPictureFolder = ("C:\Users\ADMIN\Pictures"); Write-Host -ForegroundColor Red -BackgroundColor Black "Backup Folder defined" #F_SetBackup # Here we defined the "FROM & TO" stuff # Always be sure the folders are in the same Order. FromFolder 1 should be the same as ToFolder 1 $argsFromFolders = ( "$strDataFolder", "$strPictureFolder"); $argsToFolders = ( "$strBackupDrive\$date\DATA", "$strBackupDrive\$date\Pictures",); Write-Host -ForegroundColor Red -BackgroundColor Black "Arguments defined" Start-SleepProgress -Seconds 5 clear #endregion ############################################################################################################################################################## ## ## ## ## ## ## Make Backup ## Make Backup ## Make Backup ## Make Backup ## ## ## ## ## ## ############################################################################################################################################################## #region Backup #F_OldBackup # here we delete the old backup if (Test-Path "$strBackupDrive\$DatetoDelete") { robocopy $noFiles "$strBackupDrive\$DateToDelete" /MIR } else { Write-Host -ForegroundColor Cyan "No Backup found.. Continuing now" } #F_NewBackup # here we create the new backup, and create the logfile For ($i=0; $i -lt $argsFromFolders.Length; $i++) { robocopy $argsFromFolders[$i] $argsToFolders[$i] *.* /MIR /MT:8 /w:0 /r:1 /TEE /NP /NDL /DCOPY:T /UNILOG:$strLogfile gc $strLogFile | Out-File $strLogFile1 -Append gc $strLogFile | select -first 15 | Out-File $shortCopyFile -Append gc $strLogFile | select -last 10 | Out-File $shortCopyFile -Append Write-Host -ForegroundColor Cyan "Log Edited" } #endregion ########################################################################################################################################################## ## ## ## ## ## ## LOG FILE ## LOG FILE ## LOG FILE ## LOG FILE ## ## ## ## ## ## ########################################################################################################################################################## #region Logfile #F_CreateLog # this is just to get an HTML Index file with the link to the Logfiles so u get an overview of the backups. # if the backup is older than 7 days, the log file is still here but the files arent :P cat "$strBackupDrive\$date*.log" | sc $strBackupDrive\$date\overview.txt Write-Host -ForegroundColor Cyan "Logfiles merged" $cont = "<font face='monospace'>$(Get-Content $strBackupDrive\$date\overview.txt | ForEach-Object {"$($_ -replace '\s',' ') <br/>"})</font>" ConvertTo-Html -Title "Robocopy Backup" -Body $cont | Out-File $strLogPath\$date.small.html Write-Host -ForegroundColor Cyan "Backup Summary Created" $cont = "<font face='monospace'>$(Get-Content $strLogFile1 | ForEach-Object {"$($_ -replace '\s',' ') <br/>"})</font>" ConvertTo-Html -Title "Robocopy Backup" -Body $cont | Out-File $strLogPath\$date.big.html Write-Host -ForegroundColor Cyan "Full Backup Log Created" Add-Content -path $index -value "`r`n<a href=`"day/$date.small.html`">`&Uuml`;bersicht vom Daily Backup ( $date )</a>`&nbsp`;`&nbsp`;`&nbsp`;`&nbsp`;`&nbsp`;`&nbsp`;<a href=`"day/$date.big.html`">Ganzer Log vom Daily Backup ( $date )</a><br/>" Write-Host -ForegroundColor Cyan "Index up-2-date ($date)" #Old_Files # and here we delete the old folder and the temp logfiles if (Test-Path "$strBackupDrive") { Remove-Item "$strBackupDrive\$DatetoDelete" -ErrorAction Ignore Remove-Item "$strBackupDrive\$date*.log" -ErrorAction Ignore Write-Host -ForegroundColor Cyan "Files Deleted" } else { Write-Host -ForegroundColor Cyan "No Logs found.. Continuing now" } #endregion
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.