Comments (8)
I think I found the problem
7732c1635b36:/backups# ls -l
total 4
lrwxrwxrwx 1 1000 1000 21 Apr 15 15:18 latest -> world-20240415-151650
drwxrwxr-x 10 1000 1000 4096 Jan 9 19:47 world-20240415-151650
7732c1635b36:/backups# date
Tue Apr 16 07:00:49 PDT 2024
I think rsync is setting the timestamp of the folder to that of the original source.
the -a
flag on rsync preserves timestamps, but if you touch
the root folder after the backup but before the prune that should fix it.
from docker-mc-backup.
Glad to hear you found the issue and a fix. The github docs will give a nice overview of PR process. Basically you'll fork the repo, push your branch, and then submit a PR.
from docker-mc-backup.
Thanks for reporting this.
It looks like there might be a bug here
docker-mc-backup/scripts/opt/backup-loop.sh
Line 280 in 648cee5
where -mtime
expects units of hours, not days.
from docker-mc-backup.
Actually, find
on Alpine accepts units of days for -mtime
-mtime DAYS mtime is greater than (+N), less than (-N),
or exactly N days in the past
In that case I'm not sure why it is pruning a directory that is created on the same day.
from docker-mc-backup.
I'll play around a bit from inside the image, does seem odd though.
Are you able to reproduce it?
from docker-mc-backup.
I have created a local branch to fix the issue, and I tested it on my machine (works).
What's the process for submitting branches?
0001-Fixes-rsync-prune-issue-174.patch
from docker-mc-backup.
Glad to hear you found the issue and a fix. The github docs will give a nice overview of PR process. Basically you'll fork the repo, push your branch, and then submit a PR.
Will do!
from docker-mc-backup.
Just for reference -a
is the same as -rlptgoD
--recursive, -r recurse into directories
--links, -l copy symlinks as symlinks
--perms, -p preserve permissions
--times, -t preserve modification times
--group, -g preserve group
--owner, -o preserve owner (super-user only)
-D same as --devices --specials
Another option would be -rlpgoD
which wouldn't preserve times. This might however null the benefit of --link-dest
as the times of files would change causing them to not be "links." I think the touch
is an awesome way to make this work!!!!
from docker-mc-backup.
Related Issues (20)
- mc-backup fails to connect to RCON and terminates the container HOT 4
- Option to create specified directory HOT 1
- Unable to connect to RCON on unRAID server HOT 2
- Add support for configuring rclone retries in backup container HOT 1
- Add chron time schedule for backups HOT 3
- Provide option to customize included directories, such as just world directory HOT 1
- Allow for excludes to be blank
- Split to multiple files HOT 4
- Is it possible that excluding files of type .jar could potentially lead to unexpected issues? HOT 2
- Rclone only prune local HOT 8
- Error querying the server after upgrade to 1.20.4 HOT 2
- rsync doesn't prune HOT 1
- Error querying the server when using authentication mod HOT 1
- rsync is not pruning all directories HOT 8
- Support different query and RCON addresses HOT 1
- Incompatability with Lazytainer HOT 2
- Wrong permissions on level.dat HOT 8
- Restore backup container leaves zombie process HOT 1
- tar method does not prune old files HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-mc-backup.