| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Thu Jun 20, 2002 8:14 am Post subject: mp3 files excluded |
|
|
Hi Craig,
Is it possible to either exclude mp3 files altogether or just to (at least) exclude them from the compression algorithim. Since they are large and already compressed, it would chew up a lot of cpu cycles for nothing. Preferably, I would like to exclude them from the backup.
Then I would let my users know that they are not backed up and maybe give them a single 60GB IDE drive on one of the servers to store them, themselves.
Thanks a lot for all your hard work. I am just finishing up setting up a backuppc for one of my customers.
Leon |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Jun 20, 2002 8:21 am Post subject: mp3 files excluded |
|
|
Leon Letto wrote:
| Quote: | Hi Craig,
Is it possible to either exclude mp3 files altogether or just to (at
least) exclude them from the compression algorithim. Since they are
large and already compressed, it would chew up a lot of cpu cycles for
nothing. Preferably, I would like to exclude them from the backup.
Then I would let my users know that they are not backed up and maybe
give them a single 60GB IDE drive on one of the servers to store them,
themselves.
Thanks a lot for all your hard work. I am just finishing up setting up
a backuppc for one of my customers.
Leon
|
Try
$conf{BackupFilesExclude} = '*.mp3';
-------------------------------------------------------
Bringing you mounds of caffeinated joy
| Quote: | | Quote: | | Quote: | http://thinkgeek.com/sf <<<
|
|
|
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users |
|
| Back to top |
|
 |
Guest
|
Posted: Thu Jun 20, 2002 9:09 am Post subject: mp3 files excluded |
|
|
| Quote: | | Quote: | Is it possible to either exclude mp3 files altogether or just to (at
least) exclude them from the compression algorithim. Since they are
large and already compressed, it would chew up a lot of cpu cycles for
nothing. Preferably, I would like to exclude them from the backup.
Then I would let my users know that they are not backed up and maybe
give them a single 60GB IDE drive on one of the servers to store them,
themselves.
Thanks a lot for all your hard work. I am just finishing up setting up
a backuppc for one of my customers.
Leon
|
Try
$conf{BackupFilesExclude} = '*.mp3';
|
This will work with tar, but not smbclient. Unfortunately smbclient
also needs the "r" option to -T to make wildcards in the exclude file
list work. That's a one-character change to lib/BackupPC/Xfer/Smb.pm,
but you can't do it from the configuration file. (Sometime I should
move the entire smbclient command to the conf file, like it works
with tar, so you can make tweaks like this.)
| Quote: | Another question. Can I say
$conf{BackupFilesExclude} = '~Temporary Internet Files\*.*';
Or something like that, to exclude a pathname. This is because there is
always a different username in front of this folder name. eg. c:\Documents
and Settings\leon\Local Settings\Temporary Internet Files .
|
If you added the "r" option to smbclient's -T, this should work:
$Conf{BackupFilesExclude} = [
'*/Temporary Internet Files/*',
'*.MP3',
'*.mp3'
];
I would start to question the value of this kind of tweaking. Just
require all your users to listen to the same kind of music .
There is a warning in the smbclient man page that says wildcards done
via regex can be slow. If smbclient is compiled without regex support
(I'm not sure what the default is) then "*" and "?" are still meant to
work ok.
Also, smbclient can't exclude files from a specific list (ie: you can't
include and exclude at the same time). Tar can.
Perhaps I should add "-r" as the default to lib/BackupPC/Xfer/Smb.pm?
Craig
-------------------------------------------------------
Bringing you mounds of caffeinated joy
| Quote: | | Quote: | | Quote: | http://thinkgeek.com/sf <<<
|
|
|
_______________________________________________
BackupPC-users mailing list
BackupPC-users < at > lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/backuppc-users |
|
| Back to top |
|
 |
|