lib/backs3/backup.rb in jemmyw-backs3-0.0.2 vs lib/backs3/backup.rb in jemmyw-backs3-0.0.3

- old
+ new

@@ -31,10 +31,10 @@ end def files_to_backup @files_to_backup ||= begin Dir.glob(File.join(@options['folder'], '**', '**')).select do |file| - if File.directory?(file) + if File.directory?(file) || File.symlink?(file) false else if @options['exclude'].blank? || file !~ /#{@options['exclude']}/ if full_backup || File.mtime(file).to_i > last_backup true \ No newline at end of file