title: How to tar a folder while files inside the folder might being written by some other process
body: <p>I am trying to create a script for cron job. I have around 8 GB folder containing  thousands of files. I am trying to create a bash script which first tar the folder and then transfer the tarred file to ftp server.</p>
  
  <p>But I am not sure while tar is tarring the folder and some other process is accessing files inside it or writing to the files inside it.</p>
  
  <p>Although its is fine for me if the tarred file does not contains that recent changes while the tar was tarring the folder.</p>
  
  <p>suggest me the proper way. Thanks.</p>