{
    "mode": "man",
    "parameter": "svn-backup-dumps",
    "section": "1",
    "url": "https://www.chedong.com/phpMan.php/man/svn-backup-dumps/1/json",
    "generated": "2026-06-03T01:50:16Z",
    "synopsis": "svn-backup-dumps <repos> <dumpdir>",
    "sections": {
        "NAME": {
            "content": "svn-backup-dumps - Create dumpfiles to backup a subversion repository.\n",
            "subsections": []
        },
        "SYNOPSIS": {
            "content": "svn-backup-dumps <repos> <dumpdir>\n",
            "subsections": []
        },
        "DESCRIPTION": {
            "content": "svn-backup-dumps  creates  dumpfiles from a subversion repository.  It is intended for use in\ncron jobs and post-commit hooks.\n\nThe basic modes of operation are:\n\n•      Create a full dump (revisions 0 to HEAD)\n\n•      Create incremental dump containing at most N revisions.\n\n•      Create incremental single-revision dumps (for use in post-commit).\n\nDumpfiles are named in the format basename.rev.svndmp or basename.rev.rev.svndmp, where base‐\nname  is the repository directory name, and the rev arguments are the first and last revision\nnumbers represented in the dumpfile, zero-padded to 6 digits.\n\nOptionally, svn-backup-dumps can compress dumpfiles with gzip or bzip2, and can transfer them\nto another host using FTP or SMB (using smbclient).\n",
            "subsections": []
        },
        "OPTIONS": {
            "content": "",
            "subsections": [
                {
                    "name": "--version",
                    "content": "Show program's version number and exit.\n",
                    "long": "--version"
                },
                {
                    "name": "-h --help",
                    "content": "Show this help message and exit.\n",
                    "flag": "-h",
                    "long": "--help"
                },
                {
                    "name": "-b",
                    "content": "",
                    "flag": "-b"
                },
                {
                    "name": "--deltas",
                    "content": "This is passed through to svnadmin dump.\n",
                    "long": "--deltas"
                },
                {
                    "name": "-c",
                    "content": "Maximum number of revisions per dumpfile.\n",
                    "flag": "-c"
                },
                {
                    "name": "-o",
                    "content": "",
                    "flag": "-o"
                },
                {
                    "name": "-O",
                    "content": "",
                    "flag": "-O"
                },
                {
                    "name": "-q",
                    "content": "",
                    "flag": "-q"
                },
                {
                    "name": "-r",
                    "content": "",
                    "flag": "-r"
                },
                {
                    "name": "-t",
                    "content": "",
                    "flag": "-t"
                },
                {
                    "name": "-t",
                    "content": "Transfer  dumps  to  another machine using the FTP or SMB protocols.  path is where to\nstore the dumpfiles on the remote server; any occurrence of %r in the path is replaced\nby the repository name.  Support for \"smb:\" requires the smbclient program.\n",
                    "flag": "-t"
                },
                {
                    "name": "-z",
                    "content": "",
                    "flag": "-z"
                }
            ]
        },
        "EXAMPLES": {
            "content": "To  create  a  full  dump  of  all  revisions  of  a repository /srv/svn/foo in the directory\n/var/backup/svn:\n\nsvn-backup-dumps /srv/svn/foo /var/backup/svn\n\nThe dumpfile will be named src.000000-NNNNNN.svndmp.gz where NNNNNN is the head revision num‐\nber.\n\nTo create incremental dumps containing at most 1000 revisions:\n\nsvn-backup-dumps --deltas -z -c 1000 /srv/svn/foo /var/backup/svn\n\nIf the youngest revision is 2923, it creates the following files:\n\nfoo.000000-000999.svndmp.gz\nfoo.001000-001999.svndmp.gz\nfoo.002000-002923.svndmp.gz\n\nIf run again, later, when the youngest revision is 3045, it creates these two files:\n\nfoo.002000-002999.svndmp.gz\nfoo.003000-003045.svndmp.gz\n\nNote that it does not remove the redundant file foo.002000-002923.svndmp.gz.\n\nTo create incremental single-revision dumps from a post-commit hook:\n\nsvn-backup-dumps -r $rev $repos /var/backups/svn\n\nwhere $rev and $repos are variables previously set in the post-commit script from its command\nline.  The dumpfile name will be in the form foo.000352.svndmp.\n\nTo send the dumpfiles to the SMB share \\\\ERNEST\\BACKUPS in a  directory  \\svn\\foo  with  user\nsvnuser and password w0rth1ng:\n\nsvn-backup-dumps    -t    \"smb://ERNEST/BACKUPS:svnuser:w0rth1ng:svn/%r   /srv/svn/foo\n/tmp/tmpbackup\n\nNote that the %r in the path is replaced by the repository name foo.  Note also that a  local\nbackup directory is required, at present, even when using the -t option.\n",
            "subsections": []
        },
        "AUTHOR": {
            "content": "Voluntary contributions made by many individuals.  Copyright © 2006 CollabNet.\n\n\n\n2006-11-09                          svn-backup-dumps(1)",
            "subsections": []
        }
    },
    "summary": "svn-backup-dumps - Create dumpfiles to backup a subversion repository.",
    "flags": [
        {
            "flag": "",
            "long": "--version",
            "arg": null,
            "description": "Show program's version number and exit."
        },
        {
            "flag": "-h",
            "long": "--help",
            "arg": null,
            "description": "Show this help message and exit."
        },
        {
            "flag": "-b",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "",
            "long": "--deltas",
            "arg": null,
            "description": "This is passed through to svnadmin dump."
        },
        {
            "flag": "-c",
            "long": null,
            "arg": null,
            "description": "Maximum number of revisions per dumpfile."
        },
        {
            "flag": "-o",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-O",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-q",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-r",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": ""
        },
        {
            "flag": "-t",
            "long": null,
            "arg": null,
            "description": "Transfer dumps to another machine using the FTP or SMB protocols. path is where to store the dumpfiles on the remote server; any occurrence of %r in the path is replaced by the repository name. Support for \"smb:\" requires the smbclient program."
        },
        {
            "flag": "-z",
            "long": null,
            "arg": null,
            "description": ""
        }
    ],
    "examples": [
        "To  create  a  full  dump  of  all  revisions  of  a repository /srv/svn/foo in the directory",
        "/var/backup/svn:",
        "svn-backup-dumps /srv/svn/foo /var/backup/svn",
        "The dumpfile will be named src.000000-NNNNNN.svndmp.gz where NNNNNN is the head revision num‐",
        "ber.",
        "To create incremental dumps containing at most 1000 revisions:",
        "svn-backup-dumps --deltas -z -c 1000 /srv/svn/foo /var/backup/svn",
        "If the youngest revision is 2923, it creates the following files:",
        "foo.000000-000999.svndmp.gz",
        "foo.001000-001999.svndmp.gz",
        "foo.002000-002923.svndmp.gz",
        "If run again, later, when the youngest revision is 3045, it creates these two files:",
        "foo.002000-002999.svndmp.gz",
        "foo.003000-003045.svndmp.gz",
        "Note that it does not remove the redundant file foo.002000-002923.svndmp.gz.",
        "To create incremental single-revision dumps from a post-commit hook:",
        "svn-backup-dumps -r $rev $repos /var/backups/svn",
        "where $rev and $repos are variables previously set in the post-commit script from its command",
        "line.  The dumpfile name will be in the form foo.000352.svndmp.",
        "To send the dumpfiles to the SMB share \\\\ERNEST\\BACKUPS in a  directory  \\svn\\foo  with  user",
        "svnuser and password w0rth1ng:",
        "svn-backup-dumps    -t    \"smb://ERNEST/BACKUPS:svnuser:w0rth1ng:svn/%r   /srv/svn/foo",
        "/tmp/tmpbackup",
        "Note that the %r in the path is replaced by the repository name foo.  Note also that a  local",
        "backup directory is required, at present, even when using the -t option."
    ],
    "see_also": []
}