I have one DC in Samba 4.3.9-Ubuntu Server
I set the backup script and it is working properly!
The restore test it is OK for me!
I scheduled via CRON and the backup takes one minute only to run
*#!/bin/bash*
*####################################*
*#*
*# Samba_AD backup script*
*#*
*####################################*
*# Stop Samba*
*/etc/init.d/samba stop*
*# What to backup*
*backup_files="/etc/samba /var/lib/samba"*
*# Where to backup to*
*dest="/BACKUP"*
*# Create archive filename*
*day=$(date +%Y_%m_%d_%H%M)*
*hostname=$(hostname -s)*
*archive_file="$hostname-$day.tgz"*
*# Backup the files using tar*
*tar --acls --xattrs -czf $dest/$archive_file $backup_files*
*# Start Samba*
*/etc/init.d/samba start*
Anderson Hoffmann do Carmo
MCP | MTA | MCDST | MCTS | MCSA | MS | MOS |
ITIL-F | ISFS | CLOUDF | CI-SCS | VCA-DCV |