Solved

powershell backup

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

Backup Solution for AWS

Read about how CloudBerry Backup fully integrates your backups with Amazon S3 and Amazon Glacier to provide military-grade encryption and dramatically cut storage costs on any platform.

Question has a verified solution.

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

This article will help you understand what HashTables are and how to use them in PowerShell.
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

730 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