{"id":17282033,"url":"https://github.com/anmol-singh-jaggi/directory-snapshot","last_synced_at":"2025-04-14T10:06:22.241Z","repository":{"id":29338345,"uuid":"32872192","full_name":"Anmol-Singh-Jaggi/Directory-Snapshot","owner":"Anmol-Singh-Jaggi","description":":file_folder: :floppy_disk: A tool to create a snapshot ( poor man's backup ) of a directory.","archived":false,"fork":false,"pushed_at":"2022-06-18T10:51:26.000Z","size":1260,"stargazers_count":19,"open_issues_count":3,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-14T10:05:58.109Z","etag":null,"topics":["backup","directory-snapshot","directory-tree","file","treeview"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Anmol-Singh-Jaggi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-03-25T15:10:04.000Z","updated_at":"2024-01-22T13:24:31.000Z","dependencies_parsed_at":"2022-09-20T07:11:10.680Z","dependency_job_id":null,"html_url":"https://github.com/Anmol-Singh-Jaggi/Directory-Snapshot","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anmol-Singh-Jaggi%2FDirectory-Snapshot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anmol-Singh-Jaggi%2FDirectory-Snapshot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anmol-Singh-Jaggi%2FDirectory-Snapshot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Anmol-Singh-Jaggi%2FDirectory-Snapshot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Anmol-Singh-Jaggi","download_url":"https://codeload.github.com/Anmol-Singh-Jaggi/Directory-Snapshot/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248860283,"owners_count":21173342,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["backup","directory-snapshot","directory-tree","file","treeview"],"created_at":"2024-10-15T09:47:31.905Z","updated_at":"2025-04-14T10:06:22.216Z","avatar_url":"https://github.com/Anmol-Singh-Jaggi.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Directory Snapshot\n\n![MIT License](https://img.shields.io/badge/license-MIT-green.svg)\n![Blazing fast](https://img.shields.io/badge/speed-blazing%20%F0%9F%94%A5-brightgreen.svg)\n[![Say thanks](https://img.shields.io/badge/Say%20Thanks-!-1EAEDB.svg)](https://saythanks.io/to/Anmol-Singh-Jaggi)\n\n- A recursive directory listing program that produces a set of interlinked HTML files, structured in the same form as the input directory.\n- Rather than taking a backup of the **contents** of a directory; instead it just stores the **metadata** (name, size etc.) of all the contents in a directory.  \n- It can be useful when you do not have enough space for a full backup, and your data consists of files which could be obtained easily again from another source after a disk failure (for example, software installation files).  \n  *It can be thought of as a hyperlinked version of the [`dir /s`][1] or [`tree /f`][2] commands.*\n\n## Installation\n - Requires Python 3.7+.\n - `pip install tqdm` (Required only if you want progress bar functionality).\n\n## Usage\n\n```\nmain.py [-h] [-dry] [-no-bar] [-no-hid] [-no-sym] [-max-rec MAX_RECURSION_DEPTH] src-path dest-path\n\npositional arguments:\n  src-path              The path of the source directory.\n  dest-path             The path of the destination directory.\n\noptional arguments:\n  -h, --help            Show this help message and exit\n  -dry, --dry-run       Just estimate the size of source directory and exit.\n  -no-bar, --hide-progress-bar\n                        Whether to hide the progress bar or not (default\n                        dont hide); will be silently ignored if \"tqdm\" package not\n                        found.\n  -no-hid, --ignore-hidden\n                        Whether to ignore hidden files and directories or not\n                        (default not ignored).\n  -no-sym, --ignore-symlinks\n                        Whether to ignore symlinks or not (default not ignored).\n  -max-rec MAX_RECURSION_DEPTH, --max-recursion-depth MAX_RECURSION_DEPTH\n                        Maximum recursion depth (default infinite).\n```\n\n - Example:  \n   `python3 main.py /Users/ajaggi/projects /Users/ajaggi/Desktop/snapshots --ignore-symlinks -no-hid -max-rec=5`\n\n## To-Do\n - Debug progress bar populating way too soon for projects dir.\n - Add demo.\n - Publish to pypi.\n - Add test cases (especially edge cases like permission errors etc).\n - Add code coverage.\n - Setup `tox` and `Travis CI`.\n - Add benchmarks.\n - Add GUI.\n - Explore parallel processing (Will have to use BFS instead of DFS probably).\n - ~~Implement `dry-run` option.~~\n - ~~Implement `no-hid` option.~~\n - ~~Implement `no-sym` option.~~\n - ~~Implement `max-rec` option.~~\n - ~~Use `logging` module instead of `print` statements.~~\n - ~~Log full exception stacktrace rather than just the message.~~\n\n[1]:https://technet.microsoft.com/en-in/library/cc755121.aspx\n[2]:https://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/tree.mspx?mfr=true\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmol-singh-jaggi%2Fdirectory-snapshot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanmol-singh-jaggi%2Fdirectory-snapshot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanmol-singh-jaggi%2Fdirectory-snapshot/lists"}