{ "info": { "author": "Manuel Amador (Rudd-O), Simon Guest (tesujimath)", "author_email": "rudd-o@rudd-o.com, simon.guest@tesujimath.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 5 - Production/Stable", "Environment :: Console", "Environment :: No Input/Output (Daemon)", "Intended Audience :: System Administrators", "License :: OSI Approved :: GNU General Public License (GPL)", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 2 :: Only", "Topic :: Communications :: File Sharing", "Topic :: System :: Archiving :: Backup", "Topic :: System :: Archiving :: Mirroring", "Topic :: System :: Filesystems", "Topic :: Utilities" ], "description": "# ZFS tools\n\n*This repo has diverged from the upstream\n[Rudd-O/zfs-tools](http://github.com/Rudd-O/zfs-tools), as described\n[here](https://github.com/Rudd-O/zfs-tools/issues/25). It is now\nbeing maintained directly here by the original author of the `zbackup`\nutility, and has its own release numbering.*\n\n*Differences from upstream include (but may not be limited to):*\n\n* *parallel replication, for increased performance of `zreplicate`*\n\n* *locking of filesystems during replication, to avoid problems\n arising from very long replications*\n\n* *resumable replications using the facility introduced in zfs 0.7.0*\n\n*This version of the zfs-tools suite is used in production on the\nauthor's system comprising 7 fileservers, 3400 filesystems, and 550TB\nof data.*\n\nThe ZFS backup tools will help you graft an entire ZFS pool as a filesystem\ninto a backup machine, without having to screw around snapshot names or\ncomplicated shell commands or crontabs.\n\nThe utilities let you do this:\n\n1. zfs-shell:\n a shell that allows remote ZFS administration and nothing more\n\n3. zsnap:\n a command that snapshots a dataset or pool, then deletes old snapshots\n\n4. zreplicate\n a command that replicates an entire dataset tree using ZFS replication\n streams. Best used in combination with zsnap as in:\n\n - zsnap on the local machine\n - zreplicate from the local machine to the destination machine\n\n Obsolete snapshots deleted by zsnap will be automatically purged on\n the destination machine by zreplicate, as a side effect of using\n replication streams. To inhibit this, use the\n --no-replication-stream option.\n\n Run `zreplicate --help` for a compendium of options you may use.\n\n5. zbackup:\n a command to snapshot and replicate filesystems according to their user properties.\n This uses zsnap and zreplicate to do the work, which is all driven by properties.\n For details, see this [further description of zbackup](doc/README-zbackup.md).\n\n6. zflock:\n a command to lock a filesystem against replication by zbackup.\n For details, see this [further description of zbackup](doc/README-zbackup.md).\n\n## Setting up\n\nSetup is rather complicated. It assumes that you already have ZFS running\nand vaults on both the machine you're going to back up and the machine that\nwill be receiving the backup.\n\n### On the machine to back up\n\n- Install the zfs-shell command\n `cp zfs-shell /usr/local/sbin`\n `chmod 755 /usr/local/sbin/zfs-shell`\n `chown root.root /usr/local/sbin/zfs-shell`\n\n- Create a user with a home directory and shell `zfs-shell`\n `useradd -rUm -b /var/lib -s /usr/local/sbin/zfs-shell zfs`\n\n- Let `sudo` know that the new user can run the zfs command\n `zfs ALL = NOPASSWD: /usr/local/sbin/zfs`\n (ensure you remove the `requiretty` default on `/etc/sudoers`)\n (check `sudoers.zfs-tools` in `contrib/` for an example)\n\n- Set up a cron job to run `zsnap` as frequently as you want to,\n snapshotting the dataset you intend to replicate.\n\n### On the backup machine\n\n- Set up public key authentication for SSH so the backup machine\n may log as the user `zfs` (as laid out above) in the machine to\n be backed up.\n\n- Create a dataset to receive the backup stream.\n\n- Set up a cron job to fetch the dataset snapshotted by zsnap\n from the remote machine into the newly created dataset. You\n will use `zreplicate` for that (see below for examples).\n\n- After the first replication, you may want to set the `mountpoint`\n attributes on the received datasets so they do not automount\n on the backup machine.\n\n### Test\n\nIf all went well, you should be able to do this without issue:\n\n(on the machine to back up)\n\n [root@peter]\n zsnap senderpool\n\n(on the machine to receive)\n\n [root@paul]\n zfs create receiverpool/senderpool # <--- run this ONLY ONCE\n zreplicate -o zfs@paul:senderpool receiverpool/senderpool\n # this should send the entire senderpool with all snapshots\n # over from peter to paul, placing it in receiverpool/senderpool\n\n(on the machine to back up)\n\n [root@peter]\n zsnap senderpool\n\n(on the machine to receive)\n\n [root@paul]\n zreplicate -o zfs@paul:senderpool receiverpool/senderpool\n # this should send an incremental stream of senderpool\n # into receiverpool/senderpool\n\nAnd that's it, really.\n\n\n", "description_content_type": "", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.com/tesujimath/zfs-tools-zbackup", "keywords": "ZFS filesystems backup synchronization snapshot", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "zfs-tools-zbackup", "package_url": "https://pypi.org/project/zfs-tools-zbackup/", "platform": "", "project_url": "https://pypi.org/project/zfs-tools-zbackup/", "project_urls": { "Homepage": "http://github.com/tesujimath/zfs-tools-zbackup" }, "release_url": "https://pypi.org/project/zfs-tools-zbackup/0.5.1/", "requires_dist": null, "requires_python": ">=2.7, <3", "summary": "ZFS synchronization and snapshotting tools", "version": "0.5.1" }, "last_serial": 4597154, "releases": { "0.5.1": [ { "comment_text": "", "digests": { "md5": "4a0f8ef895a077f9f72fc9308161477c", "sha256": "bfcb130cfcfbe4bc744feb074b5ea65dfc8f14f5cf2d367a114fd3b8a92b17ff" }, "downloads": -1, "filename": "zfs_tools_zbackup-0.5.1-py2-none-any.whl", "has_sig": false, "md5_digest": "4a0f8ef895a077f9f72fc9308161477c", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": ">=2.7, <3", "size": 33480, "upload_time": "2018-12-13T22:39:20", "url": "https://files.pythonhosted.org/packages/a8/d2/dc5350a1635ad5fe48df64e8ef6f44adfa0567ff6e49c210790fc4793628/zfs_tools_zbackup-0.5.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba56b7dfb346d22732c75112bf4f141a", "sha256": "a54f0f9342b8f6ec1a0acf4c0276cd0dec0c43265fbaeba58490ff976b6833ad" }, "downloads": -1, "filename": "zfs-tools-zbackup-0.5.1.tar.gz", "has_sig": false, "md5_digest": "ba56b7dfb346d22732c75112bf4f141a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, <3", "size": 38295, "upload_time": "2018-12-13T22:39:23", "url": "https://files.pythonhosted.org/packages/0d/af/7d3361f955f35ad0c8823a43843795e247ea23addb030447907fdf4ae6cb/zfs-tools-zbackup-0.5.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "4a0f8ef895a077f9f72fc9308161477c", "sha256": "bfcb130cfcfbe4bc744feb074b5ea65dfc8f14f5cf2d367a114fd3b8a92b17ff" }, "downloads": -1, "filename": "zfs_tools_zbackup-0.5.1-py2-none-any.whl", "has_sig": false, "md5_digest": "4a0f8ef895a077f9f72fc9308161477c", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": ">=2.7, <3", "size": 33480, "upload_time": "2018-12-13T22:39:20", "url": "https://files.pythonhosted.org/packages/a8/d2/dc5350a1635ad5fe48df64e8ef6f44adfa0567ff6e49c210790fc4793628/zfs_tools_zbackup-0.5.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "ba56b7dfb346d22732c75112bf4f141a", "sha256": "a54f0f9342b8f6ec1a0acf4c0276cd0dec0c43265fbaeba58490ff976b6833ad" }, "downloads": -1, "filename": "zfs-tools-zbackup-0.5.1.tar.gz", "has_sig": false, "md5_digest": "ba56b7dfb346d22732c75112bf4f141a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, <3", "size": 38295, "upload_time": "2018-12-13T22:39:23", "url": "https://files.pythonhosted.org/packages/0d/af/7d3361f955f35ad0c8823a43843795e247ea23addb030447907fdf4ae6cb/zfs-tools-zbackup-0.5.1.tar.gz" } ] }