summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-14 12:58:48 (UTC)
committer llornkcor <llornkcor>2002-11-14 12:58:48 (UTC)
commitd7d53215cef9420872a4e0f42b547b4148ca33a9 (patch) (side-by-side diff)
tree32afa92f283c65607fed532e66b7b55d3f748795
parentd419cd6d7f96341efc16717d68d7f7a0cfc09a80 (diff)
downloadopie-d7d53215cef9420872a4e0f42b547b4148ca33a9.zip
opie-d7d53215cef9420872a4e0f42b547b4148ca33a9.tar.gz
opie-d7d53215cef9420872a4e0f42b547b4148ca33a9.tar.bz2
no --best option for gzip, buzybox already is set at best
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/backup/backuprestore.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/settings/backup/backuprestore.cpp b/noncore/settings/backup/backuprestore.cpp
index fb892d9..02998f0 100644
--- a/noncore/settings/backup/backuprestore.cpp
+++ b/noncore/settings/backup/backuprestore.cpp
@@ -26,31 +26,31 @@ BackupAndRestore::BackupAndRestore( QWidget* parent, const char* name)
restoreList->header()->hide();
connect(backupButton, SIGNAL(clicked()),
this, SLOT(backupPressed()));
connect(restoreButton, SIGNAL(clicked()),
this, SLOT(restore()));
connect(backupList, SIGNAL(clicked( QListViewItem * )),
this, SLOT(selectItem(QListViewItem*)));
connect(restoreSource, SIGNAL(activated( int )),
this, SLOT(sourceDirChanged(int)));
systemSettings = new QListViewItem(backupList, "System Settings", "",
"/etc");
- selectItem(systemSettings);
+// selectItem(systemSettings);
applicationSettings = new QListViewItem(backupList, "Application Settings", "",
QDir::homeDirPath() + "/Settings/");
selectItem(applicationSettings);
documents= new QListViewItem(backupList, "Documents", "",
QDir::homeDirPath() + "/Documents/");
- selectItem(documents);
+// selectItem(documents);
scanForApplicationSettings();
Config config("BackupAndRestore");
config.setGroup("General");
int totalLocations = config.readNumEntry("totalLocations",0);
//todo make less static here and use Storage class to get infos
if(totalLocations == 0){
backupLocations.insert("Documents", "/root/Documents");
backupLocations.insert("CF", "/mnt/cf");
backupLocations.insert("SD", "/mnt/card");
@@ -169,26 +169,26 @@ void BackupAndRestore::backupPressed(){
QDateTime time = QDateTime::currentDateTime();
QString dateString = time.date().toString().replace(QRegExp(" "), "");
outputFile += "/" + dateString;
QString t = outputFile;
int c = 1;
while(QFile::exists(outputFile + EXTENSION)){
outputFile = t + QString("%1").arg(c);
c++;
}
outputFile += EXTENSION;
-
- int r = system(QString("tar -c %1 | gzip --best > %2").arg(backupFiles).arg(outputFile).latin1());
+ qDebug("system(\"tar -c %1 | gzip > %2\").arg(backupFiles).arg(outputFile).latin1())");
+ int r = system(QString("tar -c %1 | gzip > %2").arg(backupFiles).arg(outputFile).latin1() );
if(r != 0){
QMessageBox::critical(this, "Message", "Backup Failed.",QString("Ok") );
return;
}
else{
QMessageBox::critical(this, "Message", "Backup Successfull.",QString("Ok") );
}
}
/***
* Get a list of all of the files to backup.
*/