Patrick O'Callaghan
2017-05-11 23:53:46 UTC
Has anyone looked at the potential advantages of using inotify in
combination with rsnapshot, basically in order to reduce the amount of
tree-walking necessary when doing a backup? I realise that inotify has its
own costs and may not be able to handle very large trees, but I thought I'd
ask all the same. The idea would be to use inotify to keep a list of
directories for rsnapshot to check at backup time, thus avoiding the need
to descend into branches that haven't changed.
I've no doubt this has occurred to many people before now, but a quick
Google search doesn't show up much for some reason. There are several
mentions of lsyncd (https://axkibe.github.io/lsyncd/) but that's focused on
live mirroring, which is not the same thing.
poc
combination with rsnapshot, basically in order to reduce the amount of
tree-walking necessary when doing a backup? I realise that inotify has its
own costs and may not be able to handle very large trees, but I thought I'd
ask all the same. The idea would be to use inotify to keep a list of
directories for rsnapshot to check at backup time, thus avoiding the need
to descend into branches that haven't changed.
I've no doubt this has occurred to many people before now, but a quick
Google search doesn't show up much for some reason. There are several
mentions of lsyncd (https://axkibe.github.io/lsyncd/) but that's focused on
live mirroring, which is not the same thing.
poc