summaryrefslogtreecommitdiff
path: root/files/archive.py
Commit message (Collapse)AuthorAgeFilesLines
* Refreshed metadata for extras modulesToshio Kuratomi2016-12-061-0/+4
|
* Native YAML - files (#3608)Fabio Alessandro Locati2016-12-011-3/+9
|
* Archive is being added in 2.3 rather than 2.2Toshio Kuratomi2016-11-021-1/+1
|
* Fix `archive` truncating archived file names based on prefix length (#3124)Ryan Brown2016-10-141-4/+5
| | | | | | | | | | When archiving multiple files, the full length of the calculated `arcroot` would be removed from the beginning of all file names. If there was no arcroot, the first two characters of all files would be removed, so `file.txt` would become `le.txt`. This patch uses the regular expressions substitution anchored to the start of the string, so the arcroot is only removed if it is actually present.
* Updates to `archive` module based on code review (#2699)Benjamin Doherty2016-09-131-77/+93
| | | | | | | | * Use common file arguments on destination file * Rename 'compression' to 'format' h/t @abadger * Add support for plain 'tar' format * Ensure check_mode is respected
* expanduser() on destBen Doherty2016-06-011-1/+3
|
* Refactor computation of archive filenames, clearer archive filenameBen Doherty2016-06-011-12/+11
|
* Don't try to walk over files when building archiveBen Doherty2016-06-011-25/+34
|
* Rename 'archive' -> 'arcfile' in compress branchBen Doherty2016-06-011-6/+6
|
* Change 'creates' parameter to 'dest'Ben Doherty2016-06-011-34/+34
|
* Refactor zip and tarfile loops together, branch where calls are differentBen Doherty2016-05-311-40/+36
| | | | This fixed a few bugs and simplified the code
* Merge branch 'bendoh-archive-module' of ↵Ben Doherty2016-05-311-0/+1
|\ | | | | | | | | | | | | github.com:bendoh/ansible-modules-extras into bendoh-archive-module * 'bendoh-archive-module' of github.com:bendoh/ansible-modules-extras: Add 'default' to docs for 'compression' option
| * Add 'default' to docs for 'compression' optionBenjamin Doherty2016-05-281-0/+1
| |
* | Some refactoring:Ben Doherty2016-05-311-11/+29
| | | | | | | | | | | | | | | | | | * rename archive -> arcfile (where it's a file descriptor) * additional return * simplify logic around 'archive?' flag * maintain os separator after arcroot * use function instead of lambda for filter, ensure file exists before file.cmp'ing it * track errored files and fail if there are any
* | Reword comments slightlyBen Doherty2016-05-311-2/+2
|/
* Documentation updatesBen Doherty2016-05-271-5/+4
|
* Use different syntax in lambdaBen Doherty2016-05-271-5/+1
|
* Make remove default to false. It's less frightening.Ben Doherty2016-05-261-8/+14
|
* Don't use <x> if <y> else <z> syntaxBen Doherty2016-05-261-1/+5
|
* Accept 'path' as a list argument, expose path and expanded_path,Ben Doherty2016-05-261-9/+5
| | | | Use correct variable in expanduser
* Fix up for zip files and nesting logic.Ben Doherty2016-05-261-9/+40
| | | | | | | * Don't include the archive in the archive if it falls within an archived path * If remove=True and the archive would be in an archived path, fail. * Fix single-file zip file compression * Add more documentation about 'state' return
* Add licenseBen Doherty2016-05-261-0/+20
|
* Add compressed file source to successes when succeeds!Ben Doherty2016-05-261-0/+2
|
* Add RETURN documentationBen Doherty2016-05-261-0/+21
|
* Fix write mode for ZipFiles ('wb' is invalid!)Ben Doherty2016-05-261-1/+1
|
* Drop extra double-quote from documentationBen Doherty2016-05-261-1/+1
|
* Initial commit of extras/archive module.Ben Doherty2016-05-261-0/+285
This manages compressed files or archives of many compressed files. You can maintain or update .gz, .bz2 compressed files, .zip archives, or tarballs compressed with gzip or bzip2. Possible use cases: * Back up user home directories * Ensure large text files are always compressed * Archive trees for distribution