GithubHelp home page GithubHelp logo

Comments (2)

WolfgangFahl avatar WolfgangFahl commented on June 12, 2024

This script is a workaround. It finds directories with multiple current_mirror entries. The ones with more than two are the culprit.

#!/bin/bash
# https://stackoverflow.com/questions/9157138/recursively-counting-files-in-a-linux-directory

#
# get the current mirrors
# param 1: filter
#
get_current_mirrors() {
  local l_filter="$1"
  for f in $(find . -name current_m* ) ; do 
    d=$(dirname $f)
    b=$(basename $f)
    case $l_filter in
      "dir") echo $d;;
      "file") echo $f;;
      *) echo $f
    esac
  done
}

#get_current_mirrors 
#get_current_mirrors file
get_current_mirrors dir | sort | uniq --count --repeated

from rdiff-backup.

ericzolf avatar ericzolf commented on June 12, 2024

Adding % Globals.rbdir.get_safepath() to assert len(curmir_incs) == 2, "Found too many current_mirror incs!" in src/rdiff_backup/Main.py line 1100 will fix the issue. I'll do it once #60 is closed.

from rdiff-backup.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.