Everytime you attach a file with the same name you will get a new version. You can attach files using REST API and curl. Here is an example:
curl -v -S -u admin:admin -X POST -H "X-Atlassian-Token: no-check" -F "firstname.lastname@example.org" -F "comment=this is my file" "http://localhost:8080/confluence/rest/api/content/3604482/child/attachment" | python -mjson.tool
The localhost URL needs to change to your wiki URL. The example is from this page:
I'm confused by the use case
the Excel file seems to be on a general file server which people can edit.
Then once a day you want to store a back up of that file in Confluence which will hold all previous versions of the file as archived copies - why??? i.e. after one year do you really want Confluence to hold all 365 daily versions of that file?
Why can't your people changing the Excel file on your server, instead of opening the server file, changing it and saving, they just access Confluence, download that file, do their changes and upload it again? I know it is a little different to just double clicking a file on your PC browser.
Or if it is a simple table stored as an excel spreadsheet, just create a table on a Confluence page so people just edit the Confluence page
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG