summaryrefslogtreecommitdiffstats
path: root/pyfirstaidkit/utils
Commit message (Collapse)AuthorAgeFilesLines
* Various small fixes.Joel Andres Granados2008-11-191-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | Makefile: 1. Cut counts from 1 not 0. 2. Create the "about" info in the makefile instead of spec file. 3. Put subdirs and about targets into one build target. firstaidkit.spec: 1. Erase the about creation from here. 2. Erase the fedora 7 specific stuff. 3. Call make build. 4. xserver plugin does not need rhpl nor rhpxl anymore. 5. Actually include the COPYING file where the about says it is. configuration.py: 1. Change the default backup dir from /tmp/fakbackup to /tmp. /tmp/fakbackup caused some file permission strangeness when a non root user executed fak after root had executed it. This can still occur, but it will be left like this as the user should not execute fak in non root anyway. logging: plugins.py,interpreter.py. __init__.py 1. Always use the reporting object when possible. 2. Add time stamp and level of message to log messages.
* backup.pyJoel Andres Granados2008-10-241-12/+3
| | | | | Put the reverting logic into the main Backup class. This will allow future classes that inherit from Backup to have this attribute.
* Create a new argument (reverting) for the BackupPersistent constructor.Joel Andres Granados2008-10-241-0/+10
| | | | | | | It is necessary to differentiate between calling the BackupPersistent class for backup purposes or for reverting purposes. Also the grub revert function and the firstaidkitrevert file changed to address the new changes.
* Error during deleting the metadata file is not fatalMartin Sivak2008-09-081-1/+4
|
* Delete the metadata file when using the "normal" Backup class.Joel Andres Granados2008-08-081-0/+1
|
* A time stamp in the backup directory name will help to differentiate them.Joel Andres Granados2008-08-081-1/+4
|
* We don't need the cleanup_persistent function any more.Joel Andres Granados2008-08-081-5/+3
|
* Print the persistent backup space path at the endMartin Sivak2008-08-081-1/+1
|
* Save metadata in Persistent cleanupMartin Sivak2008-08-081-0/+1
|
* Save metadata in backups, so we can write a restore toolMartin Sivak2008-08-081-0/+27
|
* Manage the persistent backup with a class of its own.Joel Andres Granados2008-08-081-5/+7
|
* Create a new backup directory every time, unless the user tells us otherwise.Joel Andres Granados2008-08-071-7/+16
| | | | | | Use tempfile to create safe backup directories. User should define backup.fullpath if he wants to override the default behaviour. User can also choose the directory where the backup directory goes.
* Do the persistent backup space in better wayMartin Sivak2008-08-071-10/+13
|
* Add PersistentBackup spaceMartin Sivak2008-08-071-4/+18
|
* Initial commit for the Grub plugin.Joel Andres Granados2008-08-071-0/+11
| | | | | Nothing was used from the original grub plugin. For now they will both coexists in the code.
* Avoid the situation in which we use the erased dictionary to iterate on.Joel Andres Granados2008-07-141-1/+2
|
* These file was missed in the previous format checks.Joel Andres Granados2008-07-142-17/+27
|
* Fix the format of the firstaidkit file.Joel Andres Granados2008-07-142-5/+5
| | | | | | | | | | | | | - Indendtation should be 4 spaces. There was a function indented with 8 spaces. - Lines should be shorted than 80 chars. It just looks pretty :) Think of terminals whith only 80 char of length. Think of debuging in rescue mode. - Change also the print statements. Just getting ready for python 3000. - Get some spaces between elifs - There should not be any lines ending in spaces. - This can all be read in the python code conventions http://www.python.org/dev/peps/pep-0008/
* Fix typo.Joel Andres Granados2008-06-061-1/+1
|
* Add an exists function to the backup system.Joel Andres Granados2008-06-061-2/+26
|
* Check to see if the backup dir is present when creating it.Joel Andres Granados2008-05-301-1/+4
| | | | | If firstaidkit is run and does not end properly it is possible for the backup dir to already be there. The sane thing to do is to tell the user.
* Backup valuesMartin Sivak2008-05-281-0/+34
|
* Typo in backup moduleMartin Sivak2008-04-241-3/+3
|
* Cleanup the whole backup directory in the end and use weakref for singleton ↵Martin Sivak2008-04-081-2/+9
| | | | reference
* And use different method for name generation in backupMartin Sivak2008-03-251-1/+2
|
* Actually import the required shutil module into backupMartin Sivak2008-03-251-0/+1
|
* Add basic file-based backup methodMartin Sivak2008-03-251-1/+72
|
* Introduce the common Backup interface and move utils package into directoryMartin Sivak2008-03-143-0/+168