LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Backup windows sharing in fedora (https://www.linuxquestions.org/questions/linux-newbie-8/backup-windows-sharing-in-fedora-880999/)

diego_almeida127 05-16-2011 08:54 AM

Backup windows sharing in fedora
 
Hi all,

I like a script for backup of windows 10 shares for an external hd in fedora? I don't have idea how to do this.

zunder1990 05-16-2011 09:25 AM

You will need to take a look at smb, mount, and cp. Start by googleing "samba bash script". That is a start.

diego_almeida127 05-24-2011 07:01 AM

Looking on google I found this method:

#!/bin/bash

echo "Mounting"
mkdir -p /mnt/Backup
mount -t cifs //192.168.200.110/Backup -o usernamer=Admin,password="" /mnt/Backup
cp -Rap /mnt/Backup /media/Backup/Admin
umount /mnt/Backup


but to this method must be root and run the script when it does not become root, now I'm discovering as I get the script as root.


All times are GMT -5. The time now is 05:33 AM.