GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Webmaster Q & Fuckin' A (https://gfy.com/forumdisplay.php?f=27)
-   -   Tar command (unix) (https://gfy.com/showthread.php?t=723590)

scouser 04-12-2007 01:39 PM

Tar command (unix)
 
Trying to automate some backing up, but i don't want to back up lots of images, just php files.

This is the best i can come up with, that excludes most main files, but idealy i would like it to ONLY archive php files...:

tar -cf /directory/and/filetoputnewtar.tar /directorytogetfilesfrom/ --exclude=*.pdf --exclude=*.doc --exclude=*.png --exclude=*.jpg --exclude=*.gif --exclude=*.rar --exclude=*.zip --exclude=*cache* --exclude=*logs*


can anyone help? Cheers


All times are GMT -7. The time now is 05:47 AM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123