NoxArt / SublimeText2-FTPSync

Simple and free FTP(S) syncing (SFTP not available)
MIT License
342 stars 65 forks source link

Ignore images, zip etc on Download #245

Open Luc45 opened 7 years ago

Luc45 commented 7 years ago

I want to keep my local and FTP files synchronized, but only the important files, such as .php etc

I created an "ignore" list that includes all binaries, it might be useful to someone:

{
    "ignore": "ftpsync\\.settings|\\.gitignore|\\.git|Sublime Text 2/Packages|\\.raw|\\.exe|\\.mpi|\\.pdf|\\.psd|\\.ai|\\.doc|\\.xls|\\.docx|\\.xlsx|\\.7z|\\.zip|\\.rar|\\.tar|\\.gz|\\.gzip|\\.ace|\\.bmp|\\.jpg|\\.jpeg|\\.ico|\\.png|\\.gif|\\.tiff|\\.pic|\\.tga|\\.wmv|\\.avi|\\.mkv|\\.mp4|\\.mpg|\\.mpeg|\\.wav|\\.mp3|\\.ac3|\\.flac|\\.3gp",
}

Just paste it to Preferences -> Package Settings -> FTPSync -> Settings - User

Now I can sync my site 100x faster than before, literally

Luc45 commented 7 years ago

Use this to also ignore wp-admin and wp-includes folder, if you work on Wordpress:

{
    "ignore": "ftpsync\\.settings|\\.gitignore|\\.git|Sublime Text 2/Packages|\\\\wp-admin\\\\|\\\\wp-includes\\\\|\\.raw|\\.exe|\\.mpi|\\.pdf|\\.psd|\\.ai|\\.doc|\\.xls|\\.docx|\\.xlsx|\\.7z|\\.zip|\\.rar|\\.tar|\\.gz|\\.gzip|\\.ace|\\.bmp|\\.jpg|\\.jpeg|\\.ico|\\.png|\\.gif|\\.tiff|\\.pic|\\.tga|\\.wmv|\\.avi|\\.mkv|\\.mp4|\\.mpg|\\.mpeg|\\.wav|\\.mp3|\\.ac3|\\.flac|\\.3gp",
}