wild card matching of file extensions for inclusion / exclusion support? | General Questions and Support | Forum Archive

The free forums are no longer in use. It remains available as read-only archive.

Avatar
Lost password?
Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
The forums are currently locked and only available for read only access
sp_TopicIcon
wild card matching of file extensions for inclusion / exclusion support?
April 5, 2012
1:29 pm
Avatar
Mark
New Member
Members
Forum Posts: 1
Member Since:
April 5, 2012
sp_UserOfflineSmall Offline

I'd like to setup a few cron job's to with a rule similar to:

 

Create backup but only include files matching *.php extentsion

Create backup but exclude files matching *.bak or *.dat extentsions

 

Is this possible currently?

 

If not, I'm a PHP developer, so I'm happy to modifiy the code if you could give me a hint

of the best place to start.

 

Many Thanks,

 

Mark

April 6, 2012
6:20 pm
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Hi Mark, at the moment that is not possible, to give you a start, you would need to modify the cloner.functions.php file and look for the perm.txt code and follow it, what XCloner does it builts up the files to achive and puts them in the administartor/backups/perm.txt file , so if you get a subprocess to filter the files that are put on that file, then you get the files you need as per above rules

 

Hope it helps! Ovidiu

Forum Timezone: America/Chicago
Most Users Ever Online: 867
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
mlguru: 30
Django29: 29
Andy: 21
D: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10030
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
Emmanuel Joachim
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0