Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

powershell backup

Posted on 2016-08-14
2
Medium Priority
?
184 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
2 Comments
 
LVL 5

Accepted Solution

by:
Justin Nordin earned 2000 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 31

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

Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

Question has a verified solution.

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

The Nano Server Image Builder helps you create a custom Nano Server image and bootable USB media with the aid of a graphical interface. Based on the inputs you provide, it generates images for deployment and creates reusable PowerShell scripts that …
In this post we will be converting StringData saved within a text file into a hash table. This can be further used in a PowerShell script for replacing settings that are dynamic in nature from environment to environment.
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…
Loops Section Overview

926 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