Solved

powershell backup

Posted on 2016-08-14
2
154 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 29

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

A brief introduction to what I consider to be the best editor for 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…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

728 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