LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-14-2018, 09:00 AM   #1
road hazard
Member
 
Registered: Nov 2015
Posts: 257

Rep: Reputation: Disabled
Question LuckyBackup not deleting files from backup location that are deleted out of Samba shares


Using Linux Mint 19 and LuckyBackup.

On my Linux box, I have a Samba share. Multiple Windows PCs copy files to/delete files from it.

Main array is /mnt/md0, LuckyBackup backs up files from that array to /mnt/backup.

Here's what's going on, a Windows box will copy a file to /mnt/md0/sambashare/test1.txt

LB will run and back this up to /mnt/backup/sambashare/test1.txt

So far so good........

A day later, a Windows box will delete test1.txt from the Samba share and create test2.txt; giving me this:

/mnt/md0/sambashare/test2.txt

LB will run and copy over test2.txt but will not delete test1.txt so I end up with this:

/mnt/backup/sambashare/test1.txt
/mnt/backup/sambashare/test2.txt

But test1.txt no longer exists on /mnt/md0/sambashare so why doesn't LB delete it from the backup location? It appears LB is blind to file deletions when they occur on Samba shares and refuses to delete files on the backup destination.

I only see this issue with Samba shares. Is there a way to change some LB option to fix this (by adding some command line argument to rsync) or should I look for a different backup program? Or because of some Samba weirdness, -ALL- backup programs will have this same bug?
 
Old 08-15-2018, 01:21 PM   #2
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,750

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
LuckyBackup is a GUI front-end to rsync, yes?

Can you post the rsync command that LB is generating?
 
Old 08-15-2018, 05:48 PM   #3
road hazard
Member
 
Registered: Nov 2015
Posts: 257

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
LuckyBackup is a GUI front-end to rsync, yes?

Can you post the rsync command that LB is generating?
Yes.

Here you go:

rsync -h --progress --stats -r -tgo -p -l -D --update --delete-after --delete-excluded --exclude=**/*tmp*/ --exclude=**/*cache*/ --exclude=**/*Cache*/ --exclude=**~ --exclude=**/lost+found*/ --exclude=**/*Trash*/ --exclude=**/*trash*/ /mnt/md0 /mnt/backup/
 
Old 08-15-2018, 07:18 PM   #4
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,750

Rep: Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222Reputation: 2222
That looks mostly OK to me. I'd use
Code:
-a, --archive               archive mode; equals -rlptgoD (no -H,-A,-X)
, but that wouldn't be much different than what's there.

I suspect, as you do, that it's something to do with samba, about which I know nothing. Perhaps a samba guru will step in here.

Sorry.
 
  


Reply

Tags
backup, samba



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to use the Backup Tool to backup only files that have been modified, remove deleted and added files scottm7 Linux - Newbie 3 04-17-2017 11:07 AM
[SOLVED] The right or desirable location for Samba shares under Slack xj25vm Slackware 10 06-12-2011 10:44 AM
How do I use luckybackup to backup files to an external hard drive in ubuntu 10.10 ? mansour Linux - Newbie 24 05-12-2011 09:52 PM
Problems deleting files from samba shares ryan_at_werk Linux - Server 0 06-16-2009 02:47 PM
SAMBA Opening FIles From Location (Windows Shares) aliasNIGMA Linux - Software 0 09-20-2004 02:07 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration