Solved

powershell backup

Posted on 2016-08-14
2
77 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 500 total points
Comment Utility
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 27

Expert Comment

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

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

In this previous article (https://oddytee.wordpress.com/2016/05/05/provision-new-office-365-user-and-mailbox-from-exchange-hybrid-via-powershell/), we made basic license assignments to users in O365. When I say basic, the method is the simplest way …
A procedure for exporting installed hotfix details of remote computers using powershell
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

762 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

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now