Solved

powershell backup

Posted on 2016-08-14
2
160 Views
Last Modified: 2016-08-30
How to create a Powershell script to backup from a source directory to a shared drive, full and incremental?
In a Ubuntu environment, how to create a BASH scripts that will backups of a given source directory and store the backed up files in a given target location, full and incremental?
0
Comment
Question by:Beachhaus
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 5

Accepted Solution

by:
Justin Nordin earned 500 total points
ID: 41755877
Hello Beachhaus :)

There's a great utility for doing this called RoboCopy.  You can even script this using Powershell and set it to run as a scheduled task.

That being said- your question about bash scripts is a bit confusing- I'm not sure if you're saying you want to make a powershell script on a windows box that copies files on an Ubuntu fileserver or what you're looking for.

That being said, if you are scripting this in powershell I'd highly recommend you check out the following resources:
For more about robocopy: https://social.technet.microsoft.com/wiki/contents/articles/1073.robocopy-and-a-few-examples.aspx
For more about a robocopy powershell script: http://www.mikeslab.net/?p=445
0
 
LVL 30

Expert Comment

by:serialband
ID: 41755881
Robocopy is what you'd use in Windows, and rsnyc or rsnapshot is what you would use in ubuntu.
1

Featured Post

Secure Your WordPress Site: 5 Essential Approaches

WordPress is the web's most popular CMS, but its dominance also makes it a target for attackers. Our eBook will show you how to:

Prevent costly exploits of core and plugin vulnerabilities
Repel automated attacks
Lock down your dashboard, secure your code, and protect your users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A procedure for exporting installed hotfix details of remote computers using powershell
In previous parts of this Nano Server deployment series, we learned how to create, deploy and configure Nano Server as a Hyper-V host. In this part, we will look for a clustering option. We will create a Hyper-V cluster of 3 Nano Server host nodes w…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question