Cron job : exclude files | Wordpress 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_Feed Topic RSSsp_TopicIcon
Cron job : exclude files
August 23, 2013
11:02 pm
Avatar
lakenjr
Member
Members
Forum Posts: 5
Member Since:
September 30, 2010
sp_UserOfflineSmall Offline

Can you please provide some examples of excluding folders/directories when using a Cron job

 

** When excluding a single folder, will the following  work?  

 $_CONFIG['cron_exclude']="………/wp-content/uploads/2013/03";

 

** For multiple folders, can wild cards be used in the name?

 

** Can there be a list of folder names? What is the syntax?

e.g. will the following work?  Do there need to be more quotes or commas?

$_CONFIG['cron_exclude']="………/wp-content/uploads/2013/03

………/wp-content/uploads/2013/04

………/wp-content/uploads/2013/05";

 

(I am looking for a way to reduce the size of my backup by excluding everything in uploads – having a separate mechanism for backing up uploads.)

August 24, 2013
6:46 am
Avatar
Ovidiu Liuta
Admin
Forum Posts: 2484
Member Since:
September 26, 2010
sp_UserOfflineSmall Offline

Please use the frontend interface of the Cron file exclude and do a sample config, you will see the output inside the saved config file. At the moment, wildcards are not supported, but yes, you can exclude multiple folders at a time, usually they are separate by line break.

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
D: 21
Andy: 21
Marcus: 20
Jamie F: 19
Member Stats:
Guest Posters: 738
Members: 10052
Moderators: 2
Admins: 3
Forum Stats:
Groups: 3
Forums: 7
Topics: 2397
Posts: 8236
Newest Members:
ISIDORO ILARDO
Moderators: TriP: 0, Steve Burge: 0
Administrators: Ovidiu Liuta: 2484, Victor Drover: 1, Valentin Barbu: 0